02.04.2014, 18:36
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;
}