Problem with a simple command
#7

pawn Код:
if(strcmp(cmd,"/setfreq",true)==0)
    {
        if(PlayerInfo[playerid][pWalkie] != 1)return SendClientMessage(playerid,COLOR_GREY," You don't have a walkie talkie");
            new freq;
            tmp = strtok(cmdtext, idx);
            freq = strval(tmp);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid,COLOR_GRAD1,"USAGE: /setfreq [1-999]");
                return 1;
            }
            if(freq < 1 || freq > 999)return SendClientMessage(playerid,COLOR_GREY," Frequence can't go lower than 1 or higher than 999 !");
            PlayerInfo[playerid][pFreq] = freq;
            format(string, 256, "You set your frequence to %d !", freq);
            SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
        return 1;
    }
Reply


Messages In This Thread
Problem with a simple command - by FreeSoul - 22.02.2012, 16:51
Re: Problem with a simple command - by Fires - 22.02.2012, 16:57
Re: Problem with a simple command - by FreeSoul - 22.02.2012, 17:19
Re: Problem with a simple command - by Vince - 22.02.2012, 17:28
Re: Problem with a simple command - by Fires - 22.02.2012, 17:31
Re: Problem with a simple command - by FreeSoul - 22.02.2012, 17:42
Re: Problem with a simple command - by SuperViper - 22.02.2012, 18:33

Forum Jump:


Users browsing this thread: 4 Guest(s)