SA-MP Forums Archive
if(GetPlayerScore. Help. - 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: if(GetPlayerScore. Help. (/showthread.php?tid=416927)



if(GetPlayerScore. Help. - California_ - 18.02.2013

Hai! i need help wit this.


pawn Код:
if(gTeam[playerid] == TEAM_SWAT)
{
 if(GetPlayerScore(playerid) >= 700)
    {
     ForceClassSelection(playerid);
     }
    }
    return 1;
}
It keeps giving me roors anyone help?

THESE ARE THE ERRORS

pawn Код:
C:\Documents and Settings\EPUser\My Documents\Los Santos Gang Wars Server Folder\LSGWv2_.pwn(3431) : error 017: undefined symbol "name"
C:\Documents and Settings\EPUser\My Documents\Los Santos Gang Wars Server Folder\LSGWv2_.pwn(3431) : warning 215: expression has no effect
C:\Documents and Settings\EPUser\My Documents\Los Santos Gang Wars Server Folder\LSGWv2_.pwn(3431) : error 001: expected token: ";", but found "]"



Re: if(GetPlayerScore. Help. - RuthlessThuG - 18.02.2013

Quote:

error 017: undefined symbol "name"

post all the code I don't see "name" anywhere

to fix this add this on top of your code
pawn Код:
new name[MAX_PLAYER_NAME];//Player name
GetPlayerName(playerid, name, sizeof(name));