Error 209
#1

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

A function returning itself.. lol.

pawn Код:
stock GetPlayerAVSAdmin(playerid) return (AccInfo[playerid][Level] >= 5);
Reply
#3

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)