#1

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?
Reply
#2

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);
Reply
#3

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} )
Reply
#4

IceCube you don't understand , I did with the command color1 an command for plate with save, but I receive errors.
Reply
#5

Put an string in the last parameter.

Ex:
pawn Код:
SetVehicleNumberPlate(vehicleid, "ViniBorn");
Reply
#6

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)?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)