Argument Type Mis-match - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Argument Type Mis-match (
/showthread.php?tid=467537)
Argument Type Mis-match -
DamonD - 03.10.2013
new paintjob = PlayerVehicleInfo[playerid][playervehicleid][pvPaintJob];
new color1 = PlayerVehicleInfo[playerid][playervehicleid][pvColor1];
new color2 = PlayerVehicleInfo[playerid][playervehicleid][pvColor2];
new plate = PlayerVehicleInfo[playerid][playervehicleid][pvPlate];
if(PlayerVehicleInfo[playerid][playervehicleid][pvPaintJob] != -1)
{
ChangeVehiclePaintjob(PlayerVehicleInfo[playerid][playervehicleid][pvId], paintjob);
ChangeVehicleColor(PlayerVehicleInfo[playerid][playervehicleid][pvId], color1, color2);
SetVehicleNumberPlate(PlayerVehicleInfo[playerid][playervehicleid][pvId], plate);
SetVehicleToRespawn(playervehicleid);
Whats wrong? I get an error "argument type mis-match" on the SetVehicleNumberPlate. What have I done wrong? The plate info is stored as "pvPlate".
Re: Argument Type Mis-match -
DanishHaq - 03.10.2013
Try this:
pawn Код:
SetVehicleNumberPlate(PlayerVehicleInfo[playerid][playervehicleid][pvId], PlayerVehicleInfo[playerid][playervehicleid][pvPlate]);