SA-MP Forums Archive
Have Error ! - 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: Have Error ! (/showthread.php?tid=621374)



Have Error ! - TYDS - 10.11.2016

error 017: undefined symbol "randomEx"

Код:
new rand, string[128]; 
				rand = randomEx(15000, 13500); 
				GivePlayerCash(playerid, rand);
				format(string,sizeof(string), "Ban Nhan Duoc %d$ Tu Viec Quet Rac.", rand);
				SendClientMessage(playerid, COLOR_WHITE, string);



Re: Have Error ! - Pearson - 10.11.2016

Hello.
PHP код:
stock randomEx(minnum cellminmaxnum cellmax) return random(maxnum minnum 1) + minnum
Try this.