SA-MP Forums Archive
Question... - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Question... (/showthread.php?tid=159266)



Question... - Ash. - 12.07.2010

Im trying to make a script to only do something when a player has over or equal to 50 points, this is how i have it do far but i dont think it would work..

Would it, here is the section of script...

pawn Код:
if (GetPlayerScore(playerid) > 49)
{
   // The thing i want it to do...
}
Would it work?

Thanks,
Ash!


Re: Question... - Vince - 12.07.2010

Should do.


Re: Question... - Hiddos - 12.07.2010

Should work, more logical:

pawn Код:
if (GetPlayerScore(playerid) >= 50)
{
   // The thing i want it to do...
}



Re: Question... - MikkelGutten - 12.07.2010

Quote:
Originally Posted by funky1234
Посмотреть сообщение
Im trying to make a script to only do something when a player has over or equal to 50 points, this is how i have it do far but i dont think it would work..

Would it, here is the section of script...

pawn Код:
if (GetPlayerScore(playerid) > 49)
{
   // The thing i want it to do...
}
Would it work?

Thanks,
Ash!
Why don't you just test it ingame with a simple command?