Having problems converting cmd to ycmd...
#1

Hello dear samp forum members

I have some problem with this cmds...

Here is my commands:
pawn Код:
YCMD:radio(playerid, params[], help)
{
    new string [128];
    new rfreq = PlayerInfo[playerid][pFreq];
    format(string, sizeof(string), "  Your current frequence is <%d>", rfreq);
    SendClientMessage(playerid, 0xFFFFFFAA, string);
    SendClientMessage(playerid, 0xFFFFFFAA, "  Type /freq <radio frequency> to set your radio frequency (numbers only!)");
    SendClientMessage(playerid, 0xFFFFFFAA, "  Use /r <text> to chat");
    return 1;
}
YCMD:freq(playerid, params[], help)
{
    if(sscanf(params, "s[128]", str)) return SendClientMessage(playerid, 0xAFAFAFAA, ".: Usage: /freq [Freqence(100000-999999) :."); //FIRST ERROR.
    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;
}
ERRORS:
pawn Код:
error 017: undefined symbol "str"
error 017: undefined symbol "freqx"
error 017: undefined symbol "tmp"
error 017: undefined symbol "freqx"
error 017: undefined symbol "freqx"
error 017: undefined symbol "string"
error 017: undefined symbol "string"
Thank you for your time and everything.. Just cant clearly understand how that works...
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)