What's wrong?
#1

What's wrong?

Код:
line:
(31349) new Plate;
(31350) format(Plate,22,"RC-%d",GetVehicleModel(vehicleid));
(31351) SetVehicleNumberPlate(vehicleid,Plate);
(31352) SetVehicleToRespawn(vehicleid);
Код:
C:\Users\Patch\Desktop\RC-RP\gamemodes\RP.pwn(31350) : error 035: argument type mismatch (argument 1)
C:\Users\Patch\Desktop\RC-RP\gamemodes\RP.pwn(31351) : error 035: argument type mismatch (argument 2)
C:\Users\Patch\Desktop\RC-RP\gamemodes\RP.pwn(31349) : warning 203: symbol is never used: "Plate"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#2

You're trying to use an integer as a string, Plate needs to be initialized as an array to work as a string in other words. For example:

pawn Код:
new Plate[22];
Reply
#3

Work's Thx!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)