Simple Problem.
#7

Why don't you use ZCMD with sscanf and you use strcmp which is slower. It's also easier!
pawn Код:
CMD:hi(playerid, params[])
{
    if(isnull(params)) return SendClientMessage(playerid, -1, "/Hi <message>");
    new
        str[ 128 ]
    ;
    format(str, sizeof(str), params);
    SendClientMessage(playerid, 0xFFFFFFFF, str);
    return 1;
}
Also, isnull can be used for this situation and it's better than sscanf. Any other parameter, just use sscanf as you did.
Reply


Messages In This Thread
Simple Problem. - by stojan - 31.12.2012, 10:30
Re: Simple Problem. - by JaKe Elite - 31.12.2012, 10:31
Re: Simple Problem. - by Konstantinos - 31.12.2012, 10:33
Re: Simple Problem. - by stojan - 31.12.2012, 10:43
Re: Simple Problem. - by stojan - 31.12.2012, 10:47
Re: Simple Problem. - by JaKe Elite - 31.12.2012, 10:59
Re: Simple Problem. - by Konstantinos - 31.12.2012, 11:12
Re: Simple Problem. - by stojan - 05.01.2013, 22:57
Re: Simple Problem. - by wouter0100 - 06.01.2013, 00:33

Forum Jump:


Users browsing this thread: 2 Guest(s)