PDA

View Full Version : Bad token



thOuMta
20th March 2013, 09:19
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 ;/

kung foo man
20th March 2013, 09:22
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.

thOuMta
20th March 2013, 09:28
Pfff now have the same error from zommenus ...

Earliboy
20th March 2013, 09:30
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.

thOuMta
20th March 2013, 09:35
I already rewrite this !!


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 !!!

kung foo man
20th March 2013, 09:47
What you mean with nothing? You said the problem is fixed in that file, but menus.gsc needs some love now.

thOuMta
20th March 2013, 09:48
Don't have this caractere or anythings ..

Tally
20th March 2013, 10:05
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.