SA-MP Forums Archive
warning 202: how to fix em ? - 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: warning 202: how to fix em ? (/showthread.php?tid=278925)



warning 202: how to fix em ? - [PS]NightborN - 24.08.2011

Code:
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(181) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(182) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(183) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(184) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(185) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(186) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(187) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(188) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(189) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(190) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(191) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(192) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(193) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(194) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(195) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(196) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(197) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(198) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(199) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(200) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(201) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(202) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(228) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(229) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(230) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(231) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(232) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(233) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(234) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(235) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(236) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(237) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(238) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(239) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(240) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(241) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(242) : warning 202: number of arguments does not match definition
D:\GM's\oncha\BGT\pawno\include\PPC_GameModeInit.inc(243) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


38 Warnings.
Example on line when its warning

Code:
LastVehicleID = Vehicle_AddStatic(VehicleRoadTrain, -891.66333008, -1202.89147949, 109.41044617, 170.14556885, -6,6, 15, 600); // RoadTrain



Re: warning 202: how to fix em ? - =WoR=G4M3Ov3r - 24.08.2011

PHP Code:
new LastVehicleID



Re: warning 202: how to fix em ? - iMonk3y - 24.08.2011

You have 9 arguments, there should be 8.

pawn Code:
Vehicle_AddStatic(VehicleModel, x, y, z, rotation, color1, color2, spawndelay)



Re: warning 202: how to fix em ? - =WoR=G4M3Ov3r - 24.08.2011

Quote:
Originally Posted by iMonk3y
View Post
You have 9 arguments, there should be 8.

pawn Code:
Vehicle_AddStatic(VehicleModel, x, y, z, rotation, color1, color2, spawndelay)
He has 8, he didn't use this tho

PHP Code:
new LastVehicleID



Re: warning 202: how to fix em ? - iMonk3y - 24.08.2011

Quote:
Originally Posted by G4M3Ov3r
View Post
He has 8, he didn't use this tho

PHP Code:
new LastVehicleID
If he didn't use that, he would have different kind of error (Undefined symbol), he has 9 arguments... 15 is unnecessary I guess..


Re: warning 202: how to fix em ? - [PS]NightborN - 24.08.2011

10x to all Fixed !! Lock !


Re: warning 202: how to fix em ? - =WoR=G4M3Ov3r - 24.08.2011

Quote:
Originally Posted by [PS]NightborN
View Post
10x to all Fixed !! Lock !
No Problem