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



Little help - jaksimaksi - 14.08.2011

What am I doing wrong here?

pawn Код:
new price[64];
if(strval(price) < 0 || strval(price) > 50)
{
SendClientMessage(playerid, COLOR_GREY, "Minimum 0, max 50");
return 1;
}



Re: Little help - Grim_ - 14.08.2011

You never assign a value to the price variable. Thus, it'll always be NULL.


AW: Little help - jaksimaksi - 14.08.2011

thanks, solved