Lotto help
#1

Hello guys,i've this code to select a lotto number for the draw,but there is a problem.

If i type /lotto - The script will choose automatically the number 0.

How to fix this and show the error message "Use: /lotto 1-30"...?

Here is the code:

pawn Код:
if(!strlen(params))
    {
        SendClientMessage(playerid, 0x62FF32FF, "***Lotto information***");
        SendClientMessage(playerid, 0x62FF32FF, "Pick a number between 1 and 30 with /lotto [1-30]");
        new str[75];
        format(str, sizeof(str), "Current Jackpot is $%d!!", Jackpot);
        SendClientMessage(playerid, 0x62FF32FF, str);
    }
Reply


Messages In This Thread
Lotto help - by Face9000 - 30.12.2011, 08:48
Re: Lotto help - by coole210 - 30.12.2011, 09:04
Re: Lotto help - by Face9000 - 30.12.2011, 09:11

Forum Jump:


Users browsing this thread: 2 Guest(s)