WTF? warning 235? - 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: WTF? warning 235? (
/showthread.php?tid=244545)
WTF? warning 235? -
sciman001 - 27.03.2011
ok... heres the warning:
pawn Код:
E:\PARTY TIME\gamemodes\PARTY.pwn(297) : warning 235: public function lacks forward declaration (symbol "OnPlayerUpdate")
CODE:
pawn Код:
public OnPlayerUpdate(playerid)
{
if(!IsPlayerConnected(playerid)) return 0;
// No weapons in interiors
if(GetPlayerInterior(playerid) != 0 && GetPlayerWeapon(playerid) != 0)
{
SetPlayerArmedWeapon(playerid,0);
return 0;
}
// Don't allow minigun
if(GetPlayerWeapon(playerid) == WEAPON_MINIGUN)
{
Kick(playerid);
return 0;
}
//No jetpacks allowed
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK)
{
Kick(playerid);
return 0;
}
return 1;
}
WHAT TO DO





Re: WTF? warning 235? -
Stigg - 27.03.2011
Try update your includes.
Or.
Re: WTF? warning 235? -
sciman001 - 27.03.2011
fixed!