Error 209 - 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: Error 209 (
/showthread.php?tid=474853)
Error 209 -
GRZX - 10.11.2013
Hi i get the next error when i try to compile : filterscripts\LuxAdmin.pwn(12241) : warning 209: function "GetPlayerAVSAdmin" should return a value
the line is:
forward GetPlayerAVSAdmin(playerid);
public GetPlayerAVSAdmin(playerid)
{
if(AccInfo[playerid][Level] >= 5)
return GetPlayerAVSAdmin(playerid);
}
Re: Error 209 - Emmet_ - 10.11.2013
A function returning itself.. lol.
pawn Код:
stock GetPlayerAVSAdmin(playerid) return (AccInfo[playerid][Level] >= 5);
Re: Error 209 -
GRZX - 10.11.2013
i'm new and i'm pretty awfull at this,can you explain me a little bit how to put it?i mean i must to put it at 12241
Re: Error 209 -
DavidLuango - 10.11.2013
It'd be much for easier for me to help you.
Either way the error itself clearly clarifies that
The function should return in valud.
Therefore
Let's do an example.
{
{
/// You function here
}
return 1;
}
^ Something like that.