Results 1 to 2 of 2
  1. #1
    σиє ℓιfє. ℓινє ιт. C0D-FR34K's Avatar
    Join Date
    Aug 2011
    Location
    Heaven and Hell
    Posts
    1,444
    Points
    920
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    Heaven and Hell
    Posts
    1,444
    Points
    920
    Gamer IDs

    PSN ID: xC0D--FR34Kx Steam ID: c0d-fr34k

    Default Bad Token Script error!!!!!!!!!! Pls Help

    Hey guys, i have just finished adding my edit of nity mod menu into the nit & trents + gametypes mod menu, but when i added:

    case "RTD":
    setDvar( "custom_gametype", "rolls" );
    self iPrintlnBold( "^0Switching ^1cusom_gametype ^0to rolls^1....." );
    wait 1;
    map_restart( false );
    break;
    case "Zombies":
    setDvar( "custom_gametype", "zombies" );
    self iPrintlnBold( "^0Switching ^1cusom_gametype ^0to rolls^1....." );
    wait 1;
    map_restart( false );
    break;
    case "Back to Trents":
    setDvar( "custom_gametype", "normal" );
    self iPrintlnBold( "^0Switching ^1cusom_gametype ^0to normal^1....." );
    wait 1;
    map_restart( false );
    break;

    and this:

    gameType = getDvar( "custom_gametype" );

    switch( gameType )
    {
    case "normal":
    self enableWeapons();
    break;
    case "rolls":
    self enableWeapons();
    break;
    case "zombies":
    self enableWeapons();
    break;
    default:
    break;
    }

    to:

    closeModMenu()

    it said i have a bad token script error (missing opening quotes or angle brackets), but when i had a look and went over the mod menu, i couldn't find the problem, can anyone help?

    BTW: This is in the nity mod menu part and not trents or the gametypes

    ITs alright i fixed it, i forgot to save it

    0 Not allowed! Not allowed!

  2. #2
    MonsterCat
    Insan3Lik3
    CheeseToast's Avatar
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169

    Contact info:

    Youtube Channel: http://www.youtube.com/CheeseToastHax

    Default

    just so you know in the fuiture, bad token meens you forgot a "
    ex: iprintlnbold("hi );

    as you can see i forgot the next " so it will give a bad token error. So it would look like
    iprintlnbold("hi"); for no errors.

    0 Not allowed! Not allowed!
    "It's better to lose an argument/debate then to win. Cause when you lose you grow as a person."
    -CheeseToast

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 01:23 PM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.