(/command [id] [time]) how can i add another variable?
#1

How can change this so insted of /command ID TIME
it works as /command ID TIME REASON

pawn Код:
if(strcmp(cmd, "/aj", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pGmL] >= 2)
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "Użyj: /aj [ID] [MIN]");
                    return 1;
                }
                new para1;
                new level;
                para1 = ReturnUser(tmp);
                tmp = strtok(cmdtext, idx);
                level = strval(tmp);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)