What's wrong? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: What's wrong? (
/showthread.php?tid=274304)
What's wrong? -
CJoao - 05.08.2011
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.
Re: What's wrong? -
JaTochNietDan - 05.08.2011
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:
Re: What's wrong? -
CJoao - 05.08.2011
Work's Thx!