warning 202: number of arguments does not match definition
#1

So, the command basically, when you do [/dl] you can see a car's vehicle ID, and then /rveh <carid> will respawn the car. That works fine, but when I do the SendClientMessage to that person who used the command, it comes up with this error:

Quote:

(14055) : warning 202: number of arguments does not match definition

And in the game it just comes up with "SERVER: Unknown command", but it will still respawn the vehicle.

He's the code:

pawn Код:
if(strcmp(cmd, "/rveh", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] >= 1)
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_SYNTAX, "Syntax: /rveh [vehid]");
                    return 1;
                }
                new carid;
                carid = strval(tmp);
                {
                    format(string, sizeof(string), "Vehicle ID %d was respawned.", carid);
                    SendClientMessage(playerid, COLOR_WHITE); // LINE 14055
                    SetVehicleToRespawn(carid);
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_ERROR, "NOTADMIN");
            }
        }
    }
Reply


Messages In This Thread
warning 202: number of arguments does not match definition - by DanishHaq - 25.07.2013, 15:19
Re: warning 202: number of arguments does not match definition - by ScRipTeRi - 25.07.2013, 15:21
Re: warning 202: number of arguments does not match definition - by JimmyCh - 25.07.2013, 15:22
Re: warning 202: number of arguments does not match definition - by DanishHaq - 25.07.2013, 15:24

Forum Jump:


Users browsing this thread: 1 Guest(s)