I need help please :)
#1

Here is the code:
pawn Код:
public OnPlayerSpawn(playerid)
{
    if (GetPlayerScore,(playerid) =0)
    ShowPlayerDialog(playerid, Dialogulmeu, DIALOG_STYLE_LIST, "Alege Rasa.", "Afro-American\nAmerican\nMexican\nItalian", "Ok", "Iesire");
}
And that's the error:
pawn Код:
E:\SERVER~1\GAMEMO~1\new.pwn(74) : error 076: syntax error in the expression, or invalid function call
The error line:
pawn Код:
if (GetPlayerScore,(playerid) =0)
Reply
#2

try:
pawn Код:
if(GetPlayerScore(playerid) == 0)
that is mean if the player's score is equal to 0 then do some code...
Reply
#3

Remove the , next to GetPlayerScore, and see if it works.
Reply
#4

Thanx man,it worked,but how can i make a skin save?do you know?all the tutorials i cheked didn't worked.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)