SA-MP Forums Archive
help me, GM warmings - 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: help me, GM warmings (/showthread.php?tid=157996)



help me, GM warmings - RatHack - 08.07.2010

Hi

anyone know what is the problem of that?

C:\Documents and Settings\Propietario\Escritorio\sa-mp server\gamemodes\TClanServ.pwn(153) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Propietario\Escritorio\sa-mp server\gamemodes\TClanServ.pwn(153) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Propietario\Escritorio\sa-mp server\gamemodes\TClanServ.pwn(172) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Propietario\Escritorio\sa-mp server\gamemodes\TClanServ.pwn(172) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Propietario\Escritorio\sa-mp server\gamemodes\TClanServ.pwn(173) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Propietario\Escritorio\sa-mp server\gamemodes\TClanServ.pwn(173) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Propietario\Escritorio\sa-mp server\gamemodes\TClanServ.pwn(944) : warning 235: public function lacks forward declaration (symbol "SetupPlayerForClassSelection")
C:\Documents and Settings\Propietario\Escritorio\sa-mp server\gamemodes\TClanServ.pwn(946) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Propietario\Escritorio\sa-mp server\gamemodes\TClanServ.pwn(947) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Propietario\Escritorio\sa-mp server\gamemodes\TClanServ.pwn(94 : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


10 Warnings.


Re: help me, GM warmings - Kastranova - 08.07.2010

you have a piece of script ??


Re: help me, GM warmings - RatHack - 08.07.2010

I need to know what is warning 202: number of arguments does not match definition


Re: help me, GM warmings - CAR - 08.07.2010

if you got something missing in the code like:
pawn Код:
format(string, sizeof(string), playername);
which must be:
pawn Код:
format(string, sizeof(string), "%s",playername); // it misses the "%s"



Re: help me, GM warmings - ViruZZzZ_ChiLLL - 08.07.2010

Can you please kinda show us the part of the warnings
or show us your script.


Re: help me, GM warmings - RatHack - 08.07.2010

line 153: AddPlayerClass(285, 2317.3088,2388.9688,10.8203,0.6428,26,200,31,250,2 4,100,27,100);
line 172: AddPlayerClass(217, 2875.6394,918.9150,10.7500,91.7522,27,200,31,250,2 4,100,27,100);
line 173: AddPlayerClass(217, 2875.6394,918.9150,10.7500,91.7522,26,200,31,250,2 4,100,27,100);
line 944: public SetupPlayerForClassSelection(playerid)
line 946: SetPlayerCameraPos(playerid,-688.1003,943.1415,13.6328,180.5283);
line 947: SetPlayerCameraLookAt(playerid,-688.0703,939.0816,13.6328,179.6599);
line 948: SetPlayerPos(playerid,-688.0703,939.0816,13.6328,179.6599);


that is all the lines where are the warnings


Re: help me, GM warmings - CAR - 08.07.2010

for the AddPlayerClass you used a space between the 2 and the 4 and I don't know if you can set 4 weapons
and you need this at top for the public:
pawn Код:
forward SetupPlayerForClassSelection(playerid);
SetPlayerCameraPos and SetPlayerCameraLookAt and SetPlayerPos don't need the Angle 180.5283 so:
pawn Код:
SetPlayerCameraPos(playerid,-688.1003,943.1415,13.6328);
SetPlayerCameraLookAt(playerid,-688.0703,939.0816,13.6328);
SetPlayerPos(playerid,-688.0703,939.0816,13.6328);



Re: help me, GM warmings - RatHack - 08.07.2010

Thx, but now it give me 5 warnings

C:\Documents and Settings\Propietario\Escritorio\sa-mp server\gamemodes\TClanServ.pwn(176) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Propietario\Escritorio\sa-mp server\gamemodes\TClanServ.pwn(176) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Propietario\Escritorio\sa-mp server\gamemodes\TClanServ.pwn(177) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Propietario\Escritorio\sa-mp server\gamemodes\TClanServ.pwn(177) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Propietario\Escritorio\sa-mp server\gamemodes\TClanServ.pwn(94 : warning 235: public function lacks forward declaration (symbol "SetupPlayerForClassSelection")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Warnings.


Re: help me, GM warmings - CAR - 08.07.2010

You didn't forward it:
pawn Код:
forward SetupPlayerForClassSelection(playerid);
And I don't think you can give 4 weapons so you must give one at OnPlayerSpawn or something..


Re: help me, GM warmings - RatHack - 08.07.2010

foward where? anything like this?

foward AddPlayerClass(286, 2317.3088,2388.9688,10.8203,0.6428,31,250,24,100,2 7,100);

??