17.03.2012, 01:04
On this line i get Arguemt Type Mismatch,
SetVehicleNumberPlate(Veh, plateset);
This is the Command!
And FYI Veh is defined, just further up in the script.
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;