Just answer me a thing about STRTOK:
#5

Well using sscanf and strcmp, just do:

pawn Код:
if(strcmp("/kick",cmdtext,true,5) == 0)
{
    new var,reason[128];
    if(sscanf(cmdtext,"sus",cmdtext,var,reason)) return SendClientMessage(playerid,color,"/kick playerid reason");
    else
    {
        // Your kick function.
    }
    return 1;
}
Reply


Messages In This Thread
Just answer me a thing about STRTOK: - by blackwave - 21.12.2010, 12:49
Re: Just answer me a thing about STRTOK: - by MadeMan - 21.12.2010, 12:51
Re: Just answer me a thing about STRTOK: - by JaTochNietDan - 21.12.2010, 12:51
Re: Just answer me a thing about STRTOK: - by blackwave - 21.12.2010, 12:58
Re: Just answer me a thing about STRTOK: - by JaTochNietDan - 21.12.2010, 13:01
Re: Just answer me a thing about STRTOK: - by Rachael - 21.12.2010, 13:04
Re: Just answer me a thing about STRTOK: - by blackwave - 21.12.2010, 13:09

Forum Jump:


Users browsing this thread: 1 Guest(s)