if(GetPlayerScore. Help.
#1

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 "]"
Reply
#2

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));
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)