SA-MP Forums Archive
Quick 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)
+--- Thread: Quick question. (/showthread.php?tid=406489)



Quick question. - iRenegade - 10.01.2013

Hi there, I posted this earlier, but I didn't get the answer I was looking for, and the topic is 2 pages behind already.

Anyways, there's this lotto script i'm writing and i'm currently at the ticket purchase system part.
Код:
COMMAND:lotto(playerid, params[])
{
new Number;
sscanf(params, "d", Number);
if(Number < 1)
{
     SendClientMessage(playerid, 0x10F441AA, "USAGE: /lotto (1-100)");
     return 1;
}
if(Number > 100)
{
     SendClientMessage(playerid, 0x10F441AA, "USAGE: /lotto (1-100)");
     return 1;
}
//What do I put here to display the ticket number to the player?
SendClientMessage(playerid, 0x10F441AA, "You have purchased a lotto ticket!");
SendClientMessage(playerid, 0x10F441AA, "Wait for the draw.. Good luck!");

return 1;
}
I tried countless solutions, nothing seemed to output it right :\


Re: Quick question. - Glad2BeHere - 10.01.2013

https://sampforum.blast.hk/showthread.php?tid=160025


Re: Quick question. - iRenegade - 10.01.2013

Thanks for the link