SA-MP Forums Archive
I need small 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)
+--- Thread: I need small help (/showthread.php?tid=547694)



I need small help - Somalez - 24.11.2014

A'ight, I'm thinking of making a lottery system , but i friend gave me the following code for setting the prize (I got the other things right) and I want it instead of averange of money I want to add my own text ex " /setprize 4 doors Sultan" or smth similar. Basically text instead of numbers (any text)

Код:
if(lottopr < 10000 || lottopr > 5000000) return SendClientMessage(playerid, -1, "Invalid prize number. Prize must be between $10,000 and $5,000,000."); // Surpassing the prize limit



Re : I need small help - Dutheil - 24.11.2014

pawn Код:
if(lottopr < 10000 && lottopr > 5000000) return SendClientMessage(playerid, -1, "Invalid prize number. Prize must be between $10,000 and $5,000,000.");

// or

if(10000 > lottopr > 5000000) return SendClientMessage(playerid, -1, "Invalid prize number. Prize must be between $10,000 and $5,000,000.");



Re: I need small help - Somalez - 24.11.2014

I want instead of numbers , text.