SA-MP Forums Archive
error 001: expected token: ";", but found - 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)
+--- Thread: error 001: expected token: ";", but found (/showthread.php?tid=448997)



error 001: expected token: ";", but found - trolltomax - 06.07.2013

Код:
C:\Users\Antonio\Desktop\SAMP\gamemodes\gmbeta.pwn(101) : error 001: expected token: ";", but found "forward"



Код:
forward LoadUser_data(playerid,name[],value[]); //101 line
public LoadUser_data(playerid,name[],value[])
{
    INI_Int("Password",PlayerInfo[playerid][pPass]);
    INI_Int("Cash",PlayerInfo[playerid][pCash]);
    INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
    INI_Int("VIP",PlayerInfo[playerid][pVIP]);
    INI_Int("Kills",PlayerInfo[playerid][pKills]);
    INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
    return 1;
}
Where is problem?


Re: error 001: expected token: ";", but found - Goldilox - 06.07.2013

Right above the forward you might have forgotten the ;


Re: error 001: expected token: ";", but found - trolltomax - 06.07.2013

where can copy all this and fix?


Re: error 001: expected token: ";", but found - Aerotactics - 06.07.2013

Quote:
Originally Posted by trolltomax
Посмотреть сообщение
where can copy all this and fix?
Goldilox is correct, right above the forward, look at whatever is there, it is supposed to end in a semicolon ";", this is a common mistake.