SA-MP Forums Archive
number of arguments do not match definition (SetVehicleNumberPlate) - 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: number of arguments do not match definition (SetVehicleNumberPlate) (/showthread.php?tid=283028)



number of arguments do not match definition (SetVehicleNumberPlate) - Jack_Leslie - 13.09.2011

So I'm trying to set my vehicles number plate, but it's not working with my vehicle ownership system.

That code I have is:
pawn Код:
SetVehicleNumberPlate(CreateVehicle(CarInfo[playerscar][ownedvehicle] = CreateVehicle(CarInfo[id][vModel],CarInfo[id][vLocationx],CarInfo[id][vLocationy],CarInfo[id][vLocationz],CarInfo[id][vAngle],CarInfo[id][vColorOne],CarInfo[id][vColorTwo],300000)), CarInfo[playerscar][vPlate]);



Re: number of arguments do not match definition (SetVehicleNumberPlate) - [MWR]Blood - 13.09.2011

pawn Код:
SetVehicleNumberPlate((CarInfo[playerscar][ownedvehicle] = CreateVehicle(CarInfo[id][vModel],CarInfo[id][vLocationx],CarInfo[id][vLocationy],CarInfo[id][vLocationz],CarInfo[id][vAngle],CarInfo[id][vColorOne],CarInfo[id][vColorTwo],300000), CarInfo[playerscar][vPlate]);



Re: number of arguments do not match definition (SetVehicleNumberPlate) - Jack_Leslie - 13.09.2011

Quote:
Originally Posted by [MWR]Blood
Посмотреть сообщение
pawn Код:
SetVehicleNumberPlate((CarInfo[playerscar][ownedvehicle] = CreateVehicle(CarInfo[id][vModel],CarInfo[id][vLocationx],CarInfo[id][vLocationy],CarInfo[id][vLocationz],CarInfo[id][vAngle],CarInfo[id][vColorOne],CarInfo[id][vColorTwo],300000), CarInfo[playerscar][vPlate]);
Ah nearly,
Код:
 error 001: expected token: ",", but found ";"