SA-MP Forums Archive
Error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Error (/showthread.php?tid=188576)



Error - LegendNissanGTR - 08.11.2010

Help
this is a weird error
error 001: expected token: ";", but found "public"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

this is the line
public OnGameModeInit()
{


Re: Error - ExeC - 08.11.2010

Could you show us a little bit more of the script beneath the "OnGameModeInit"?


Re: Error - Retardedwolf - 08.11.2010

Its the line above public OnGameModeInit(). You forgot to add a ";" at the end of the function.


Re: Error - HireMe - 08.11.2010

pawn Код:
new something

Public OnGameModeInit(playerid)
{
}
maybe you have something like above it should be:

pawn Код:
new something;

Public OnGameModeInit(playerid)
{
}



Re: Error - hadzx - 08.11.2010

if i was you keep all ur
Код:
new something;
or whatever ur putting up the top so u can find them easyly


Re: Error - HireMe - 08.11.2010

Quote:
Originally Posted by hadzx
Посмотреть сообщение
if i was you keep all ur
Код:
new something;
or whatever ur putting up the top so u can find them easyly
yep thats true