Results 1 to 8 of 8

Thread: Bad token

  1. #1
    Private First Class thOuMta's Avatar
    Join Date
    Oct 2012
    Location
    France
    Posts
    191
    Thanks
    139
    Thanked 35 Times in 28 Posts

    Bad token

    Hey guys,

    Any1 know why i have:

    ******* script compile error *******
    bad token 'ï'
    ************************************

    With developer 1:

    ******* script compile error *******
    bad token 'ï': (file 'maps/mp/gametypes/zom.gsc', line 1)
    main()
    *
    ************************************

    But have nothing ;/

  2. #2
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Can you upload zom.gsc?

    Looks like you added accidentally extended characters.

    You can also try to select the first lines in Notepad and rewrite them.
    timescale 0.01

  3. #3
    Private First Class thOuMta's Avatar
    Join Date
    Oct 2012
    Location
    France
    Posts
    191
    Thanks
    139
    Thanked 35 Times in 28 Posts
    Pfff now have the same error from zommenus ...

  4. #4
    Private First Class Earliboy's Avatar
    Join Date
    Nov 2012
    Location
    Germany
    Posts
    130
    Thanks
    5
    Thanked 88 Times in 61 Posts
    May you messed up the text files (ï instead of i) C++ only allows that characters in strings.
    You should rewrite that characters/lines to fix that problem.
    No ... No ... this is not possible .......

  5. #5
    Private First Class thOuMta's Avatar
    Join Date
    Oct 2012
    Location
    France
    Posts
    191
    Thanks
    139
    Thanked 35 Times in 28 Posts
    I already rewrite this !!

    Code:
    main()
    {
    	
    	level.callbackStartGameType = ::Callback_StartGameType;
    	level.callbackPlayerConnect = ::Callback_PlayerConnect;
    	level.callbackPlayerDisconnect = ::Callback_PlayerDisconnect;
    	level.callbackPlayerDamage = ::Callback_PlayerDamage;
    	level.callbackPlayerKilled = ::Callback_PlayerKilled;
    	maps\mp\gametypes\_callbacksetup::SetupCallbacks();
    
    	level.autoassign = ::zomMenuAutoAssign;
    	level.allies = ::menuAllies;
    	level.axis = ::menuAxis;
    	level.spectator = ::menuSpectator;
    	level.weapon = ::menuWeapon;
    	level.endgameconfirmed = ::endMap;
    
    }
    Have nothing !!!

  6. #6
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    What you mean with nothing? You said the problem is fixed in that file, but menus.gsc needs some love now.
    timescale 0.01

  7. #7
    Private First Class thOuMta's Avatar
    Join Date
    Oct 2012
    Location
    France
    Posts
    191
    Thanks
    139
    Thanked 35 Times in 28 Posts
    Don't have this caractere or anythings ..

  8. #8
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by thOuMta View Post
    Don't have this caractere or anythings ..
    You haven't posted your menu files. You posted from a GSC file. 2 different file formats. One has nothing to do with the other. Please post from the .MENU file so we can see (your no doubt obvious) illegal characters you have introduce while clumsily typing.
    Last edited by Tally; 20th March 2013 at 10:16.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •