Warnings - 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: Warnings (
/showthread.php?tid=444253)
Warnings -
PrezyI - 16.06.2013
Код:
(176) : warning 202: number of arguments does not match definition
(177) : warning 202: number of arguments does not match definition
OnPlayerDisconnect
pawn Код:
176 GetPlayerFightingStyle(playerid,FightingStyle[playerid]);
177 GetPlayerWantedLevel(playerid,WantedLevel[playerid]);
pawn Код:
new
Float:PosX[MAX_PLAYERS],
Float:PosY[MAX_PLAYERS],
Float:PosZ[MAX_PLAYERS],
Float:Angle[MAX_PLAYERS],
Interior[MAX_PLAYERS],
VirtualWorld[MAX_PLAYERS],
Skin[MAX_PLAYERS],
WantedLevel[MAX_PLAYERS],
FightingStyle[MAX_PLAYERS]
;
Thanks in advance
AW: Warnings -
HurtLocker - 16.06.2013
Reading wiki is a very important thing to do before posting threads here!
https://sampwiki.blast.hk/wiki/GetPlayerFightingStyle
Re: Warnings -
JJB562 - 16.06.2013
GetPlayerFightingStyle and GetPlayerWantedLevel is used to get the player's fighting style and wanted level. It seems you want to set the fighting style and wanted level. So instead, you'll have to use:
pawn Код:
SetPlayerFightingStyle(playerid,FightingStyle[playerid]);
SetPlayerWantedLevel(playerid,WantedLevel[playerid]);
Re: Warnings -
PrezyI - 16.06.2013
I feel so dense right now.
Thanks