Silly question
#4

pawn Код:
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;
}
SendClientMessage(playerid, 0x10F441AA, "Your lotto number is: %d",Number);
SendClientMessage(playerid, 0x10F441AA, "You have purchased a lotto ticket!");
SendClientMessage(playerid, 0x10F441AA, "Wait for the draw.. Good luck!");

return 1;
}
You have to format that line , Iam not in oc so do it yourself
Reply


Messages In This Thread
Silly question - by iRenegade - 09.01.2013, 19:30
Re: Silly question - by RedCrossER - 09.01.2013, 19:33
Re: Silly question - by iRenegade - 09.01.2013, 19:34
Re: Silly question - by RedCrossER - 09.01.2013, 19:38
Re: Silly question - by iRenegade - 09.01.2013, 19:40
Re: Silly question - by RedCrossER - 09.01.2013, 19:43

Forum Jump:


Users browsing this thread: 6 Guest(s)