Error - 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: Error (
/showthread.php?tid=345358)
Error -
RaulSTARs - 24.05.2012
C:\Users\raul\Server samp\SERVER ROLEPLAY\gamemodes\gmraul.pwn(18293) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Line : SetVehicleNumberPlate(vehid, color1);
How can I fix it?
Re: Error -
Makaveli93 - 24.05.2012
color1 is I assume an integer? You need to set it as a string.
pawn Код:
new string[10];
format(string, 10, "%i", color1);
SetVehicleNumberPlate(vehid, string);
Re: Error -
IceCube! - 24.05.2012
Colour1

WTF
SetVehicleNumberPlate reuires a string such as "Big MOMMA"
SetVehicleNumberPlate(vehicleid, "{FFFFFF}Big MOMMA"); YOu can colour it with HEX Colours as shown in the text ( {FFFFFF} )
Re: Error -
RaulSTARs - 24.05.2012
IceCube you don't understand , I did with the command color1 an command for plate with save, but I receive errors.
Re: Error -
ViniBorn - 24.05.2012
Put an string in the last parameter.
Ex:
pawn Код:
SetVehicleNumberPlate(vehicleid, "ViniBorn");
Re: Error -
MP2 - 24.05.2012
Quote:
Originally Posted by RaulSTARs
IceCube you don't understand , I did with the command color1 an command for plate with save, but I receive errors.
|
That is not how commands work. Which command processor are you using (strcmp, dcmd, ycmd, zcmd)?