View Full Version : Error 209

10/11/2013, 01:13 AM
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);

10/11/2013, 01:19 AM
A function returning itself.. lol.

stock GetPlayerAVSAdmin(playerid) return (AccInfo[playerid][Level] >= 5);

10/11/2013, 01:29 AM
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

10/11/2013, 02:09 AM
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.

Let's do an example.
/// You function here
return 1;

^ Something like that.