Pawn warrning
#1

There are a problem when i added Government Cars in Los Santos
i don't know why but Can you help me
here is the line and the warning



Код:
(19242) : warning 202: number of arguments does not match definition
(19243) : warning 202: number of arguments does not match definition
(19244) : warning 202: number of arguments does not match definition
(19245) : warning 202: number of arguments does not match definition
(19246) : warning 202: number of arguments does not match definition
(19247) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Warnings.
Quote:

GovVehicles[0] = AddStaticVehicleEx(426,1409.0897,-1783.5763,14.8578,359.9999,0,VEHICLE_RESPAWN); //Premier
GovVehicles[1] = AddStaticVehicleEx(409,1538.9934,-1815.6353,13.4899,359.7512,0,VEHICLE_RESPAWN); //Stretch
GovVehicles[2] = AddStaticVehicleEx(426,1422.1934,-1815.5516,13.4336,359.5496,0,VEHICLE_RESPAWN); //Premier
GovVehicles[3] = AddStaticVehicleEx(426,1538.8879,-1824.3466,13.4331,359.1290,0,VEHICLE_RESPAWN); //Premier
GovVehicles[4] = AddStaticVehicleEx(579,1422.1597,-1822.9313,13.6175,0.1696,0,VEHICLE_RESPAWN); //Huntley
GovVehicles[5] = AddStaticVehicleEx(579,1422.0676,-1806.8440,13.6191,0.3474,0,VEHICLE_RESPAWN); //Huntley

Reply
#2

Your code
pawn Код:
AddStaticVehicleEx(579,1422.0676,-1806.8440,13.6191,0.3474,0,VEHICLE_RESPAWN); //Huntley
The way it should be:
pawn Код:
AddStaticVehicleEx(579,1422.0676,-1806.8440,13.6191,0.3474, color id 1, color id 2 , respawn_delay value)
You missed the second color id value.
Reply
#3

GovVehicles[0] == AddStaticVehicleEx(426,1409.0897,-1783.5763,14.8578,359.9999,0,VEHICLE_RESPAWN); //Premier
GovVehicles[1] == AddStaticVehicleEx(409,1538.9934,-1815.6353,13.4899,359.7512,0,VEHICLE_RESPAWN); //Stretch
GovVehicles[2] == AddStaticVehicleEx(426,1422.1934,-1815.5516,13.4336,359.5496,0,VEHICLE_RESPAWN); //Premier
GovVehicles[3] == AddStaticVehicleEx(426,1538.8879,-1824.3466,13.4331,359.1290,0,VEHICLE_RESPAWN); //Premier
GovVehicles[4] == AddStaticVehicleEx(579,1422.1597,-1822.9313,13.6175,0.1696,0,VEHICLE_RESPAWN); //Huntley
GovVehicles[5] == AddStaticVehicleEx(579,1422.0676,-1806.8440,13.6191,0.3474,0,VEHICLE_RESPAWN); //Huntley
Reply
#4

Quote:
Originally Posted by EAsT-OAK_510
Посмотреть сообщение
Your code
pawn Код:
AddStaticVehicleEx(579,1422.0676,-1806.8440,13.6191,0.3474,0,VEHICLE_RESPAWN); //Huntley
The way it should be:
pawn Код:
AddStaticVehicleEx(579,1422.0676,-1806.8440,13.6191,0.3474, color id 1, color id 2 , respawn_delay value)
You missed the second color id value.
Thanks +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)