SA-MP Forums Archive
What a warning :/ Help! - 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: What a warning :/ Help! (/showthread.php?tid=159149)



FIXED: What a warning :/ Help! - Lorenc_ - 12.07.2010

Fixed xD


Re: What a warning :/ Help! - Donny_k - 12.07.2010

It's this line:

pawn Код:
if(!IsSpawned(playerid)) return false;
You are using the function before it's declared below:

pawn Код:
stock bool:IsPlayerHealthHacker(playerid)
{
    if(!IsPlayerConnected(playerid)) return false;
    if(!IsSpawned(playerid)) return false; // used here
//.........

stock bool:IsSpawned(playerid) // created here
Just move it above the other one like so:

pawn Код:
stock bool:IsSpawned(playerid)
{
//...........
}

stock bool:IsPlayerHealthHacker(playerid)
{
//.........
}



Re: What a warning :/ Help! - Lorenc_ - 12.07.2010

Yes i know, soz my net got fucked and i was supose to edit the topic and say i fixed it. Thanks anyway :P