Having problems converting cmd to ycmd...
#8

try this

pawn Код:
YCMD:freq(playerid, params[], help)
{
    new string[128],str[128];
    if(sscanf(params, "s[128]", str)) return SendClientMessage(playerid, 0xAFAFAFAA, ".: Usage: /freq [Freqence(100000-999999) :."); //FIRST ERROR.
    new freqx = strval(tmp);//SECOND ERROR and 3RD ERROR
    if(freqx > 999999 || freqx < 100000)//4th error
    {
        SendClientMessage(playerid, 0x2641FEAA, "Only frequence between 100000 to 999999 are susported!!");
    }
    else
    {
        PlayerInfo[playerid][pFreq] = freqx;//5TH ERROR
        format(string, 256, "Your radio frequence has been set to %d", freqx);
        SendClientMessage(playerid, 0x2641FEAA, string);//6TH ERROR
    }
    return 1;
}
Reply


Messages In This Thread
Having problems converting cmd to ycmd... - by Scrillex - 02.04.2014, 18:19
Re: Having problems converting cmd to ycmd... - by MBilal - 02.04.2014, 18:24
Re: Having problems converting cmd to ycmd... - by Scrillex - 02.04.2014, 18:28
Re: Having problems converting cmd to ycmd... - by Bingo - 02.04.2014, 18:29
Re: Having problems converting cmd to ycmd... - by MBilal - 02.04.2014, 18:32
Re: Having problems converting cmd to ycmd... - by Scrillex - 02.04.2014, 18:33
Re: Having problems converting cmd to ycmd... - by MBilal - 02.04.2014, 18:35
Re: Having problems converting cmd to ycmd... - by DarkLored - 02.04.2014, 18:36
Re: Having problems converting cmd to ycmd... - by Scrillex - 02.04.2014, 18:38
Re: Having problems converting cmd to ycmd... - by Bingo - 02.04.2014, 18:38

Forum Jump:


Users browsing this thread: 2 Guest(s)