10.01.2013, 16:13
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.
I tried countless solutions, nothing seemed to output it right :\
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; }