Need help understanding this...
#2

I'd suggest you to use sscanf (click here to get to the sscanf topic)

in addition (if you're not using it) I'd use zcmd personally (you can use whatever you want, though - zcmd here)


with zcmd it would look like the following:
pawn Код:
CMD:kick(playerid, params[])
{
    new pid;
    if(!sscanf(params, "i", pid))
    {
        Kick(pid);
    }
    else
    {
        SendClientMessage(playerid, 0x999999AA, "useage: /kick [playerid]");
    }
    return 1;
}
(just example code, you should add more specifications to this command (like admin, etc. you know))
Reply


Messages In This Thread
Need help understanding this... - by GunZ75 - 01.10.2014, 15:05
Re: Need help understanding this... - by Sascha - 01.10.2014, 16:02
Re: Need help understanding this... - by Rudy_ - 01.10.2014, 16:21

Forum Jump:


Users browsing this thread: 1 Guest(s)