Help: warning 202: number of arguments does not match definition
#1

Код:
C:\Users\Rafael\Downloads\GTARP\GTARP\gamemodes\gtarp.pwn(15667) : warning 202: number of arguments does not match definition
C:\Users\Rafael\Downloads\GTARP\GTARP\gamemodes\gtarp.pwn(15842) : warning 202: number of arguments does not match definition
C:\Users\Rafael\Downloads\GTARP\GTARP\gamemodes\gtarp.pwn(17085) : warning 202: number of arguments does not match definition
C:\Users\Rafael\Downloads\GTARP\GTARP\gamemodes\gtarp.pwn(22351) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:      9644 bytes
Code size:     1645780 bytes
Data size:     10368928 bytes
Stack/heap size:   16384 bytes; estimated max. usage=4466 cells (17864 bytes)
Total requirements:12040736 bytes

4 Warnings.
Код:
CreateVehicle(CarInfo[ownvehkey][cModel],CarInfo[ownvehkey][cLocationx],CarInfo[ownvehkey][cLocationy],CarInfo[ownvehkey][cLocationz]+1.0,CarInfo[ownvehkey][cAngle],CarInfo[ownvehkey][cColorOne],CarInfo[ownvehkey][cColorTwo],CarInfo[ownvehkey][cNitro],60000);
I added [cNitro] in the end of the four lines and know its is appearing 4 warnings....what i have to do to fix it!?
(sry for bad english)
Reply
#2

Quote:
Originally Posted by Rafael_Olivieri
Код:
C:\Users\Rafael\Downloads\GTARP\GTARP\gamemodes\gtarp.pwn(15667) : warning 202: number of arguments does not match definition
C:\Users\Rafael\Downloads\GTARP\GTARP\gamemodes\gtarp.pwn(15842) : warning 202: number of arguments does not match definition
C:\Users\Rafael\Downloads\GTARP\GTARP\gamemodes\gtarp.pwn(17085) : warning 202: number of arguments does not match definition
C:\Users\Rafael\Downloads\GTARP\GTARP\gamemodes\gtarp.pwn(22351) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:     9644 bytes
Code size:     1645780 bytes
Data size:    10368928 bytes
Stack/heap size:   16384 bytes; estimated max. usage=4466 cells (17864 bytes)
Total requirements:12040736 bytes

4 Warnings.
Код:
CreateVehicle(CarInfo[ownvehkey][cModel],CarInfo[ownvehkey][cLocationx],CarInfo[ownvehkey][cLocationy],CarInfo[ownvehkey][cLocationz]+1.0,CarInfo[ownvehkey][cAngle],CarInfo[ownvehkey][cColorOne],CarInfo[ownvehkey][cColorTwo],CarInfo[ownvehkey][cNitro],60000);
I added [cNitro] in the end of the four lines and know its is appearing 4 warnings....what i have to do to fix it!?
(sry for bad english)
No. No. No..
Use addnitro on OnPlayerStateChange....
Reply
#3

I am editing an Roleplay server that you can buy cars and stuff and i added [cNitro] to save nitro that people buy..... when i type /v nitro....it installs a nitro kit in my car....but it is not saving because of the warnings.....i edited all the rest but it is not saving the nitro in the car because of the warnings....when i do /respawnallcars the nitro disappears....
Reply
#4

Quote:
Originally Posted by Rafael_Olivieri
I am editing an Roleplay server that you can buy cars and stuff and i added [cNitro] to save nitro that people buy..... when i type /v nitro....it installs a nitro kit in my car....but it is not saving because of the warnings.....i edited all the rest but it is not saving the nitro in the car because of the warnings....when i do /respawnallcars the nitro disappears....
Uhh... Thats why you are supposed to add it OnPlayerStateChange ad I said above!
Reply
#5

I added "new nitro;" in OnPlayerStateChange but know i have one more warning....

Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
	new string[256];
	new nitro;
	new pveh = GetVehicleModel(GetPlayerVehicleID(playerid));
	new vehicle = GetPlayerVehicleID(playerid);
	if(newstate == PLAYER_STATE_DRIVER && (pveh != 509 && pveh != 481 && pveh != 510) && IsPlayerInAnyVehicle(playerid) && !IsAPlane(vehicle) && !IsAHarvest(vehicle) && !IsADrugHarvest(vehicle) && !IsASweeper(vehicle))
	{
Код:
C:\Users\Rafael\Downloads\GTARP\GTARP\gamemodes\gtarp.pwn(6196) : warning 203: symbol is never used: "nitro"
C:\Users\Rafael\Downloads\GTARP\GTARP\gamemodes\gtarp.pwn(15668) : warning 202: number of arguments does not match definition
C:\Users\Rafael\Downloads\GTARP\GTARP\gamemodes\gtarp.pwn(15843) : warning 202: number of arguments does not match definition
C:\Users\Rafael\Downloads\GTARP\GTARP\gamemodes\gtarp.pwn(17086) : warning 202: number of arguments does not match definition
C:\Users\Rafael\Downloads\GTARP\GTARP\gamemodes\gtarp.pwn(22352) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:      9644 bytes
Code size:     1645792 bytes
Data size:     10368928 bytes
Stack/heap size:   16384 bytes; estimated max. usage=4466 cells (17864 bytes)
Total requirements:12040748 bytes

5 Warnings.
Reply
#6

someone knows what i have to do to fix this problem?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)