help me, GM warmings
#1

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.
Reply
#2

you have a piece of script ??
Reply
#3

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

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"
Reply
#5

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

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
Reply
#7

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);
Reply
#8

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.
Reply
#9

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..
Reply
#10

foward where? anything like this?

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

??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)