HELP! Argument Type Mismatch(argument 2)
#1

On this line i get Arguemt Type Mismatch,
SetVehicleNumberPlate(Veh, plateset);

This is the Command!
pawn Код:
if(strcmp(cmd, "/plate", true) == 0)
    {
        new plateset;
        plateset = strval(tmp);
        Veh = GetPlayerVehicleID(playerid);
        if(!IsPlayerInAnyVehicle(playerid))
        {
            SendClientMessage(playerid, 0xFF0000AA, "You are not in a vehicle!");
            return 1;
        }
        else
        {
            SetVehicleNumberPlate(Veh, plateset);
            format(string, sizeof(string), "You have set your vehicle's plate to %s", plateset);
            SendClientMessage(playerid, 0xFF000AA, string);
            return 1;
        }
        return 1;
And FYI Veh is defined, just further up in the script.
Reply


Messages In This Thread
HELP! Argument Type Mismatch(argument 2) - by Sal - 17.03.2012, 01:04
Re: HELP! Argument Type Mismatch(argument 2) - by AustinJ - 17.03.2012, 01:20
Re: HELP! Argument Type Mismatch(argument 2) - by Sal - 17.03.2012, 01:29

Forum Jump:


Users browsing this thread: 1 Guest(s)