I need help please :) - 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: I need help please :) (
/showthread.php?tid=347956)
I need help please :) -
Edii - 03.06.2012
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)
Re: I need help please :) -
RoboN1X - 03.06.2012
try:
pawn Код:
if(GetPlayerScore(playerid) == 0)
that is mean if the player's score is equal to 0 then do some code...
Re: I need help please :) -
Genuine - 03.06.2012
Remove the , next to GetPlayerScore, and see if it works.
Re: I need help please :) -
Edii - 03.06.2012
Thanx man,it worked,but how can i make a skin save?do you know?all the tutorials i cheked didn't worked.