Question about foreach! - 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: Question about foreach! (
/showthread.php?tid=484910)
Question about foreach! -
K9IsGodly - 02.01.2014
I just took everything in his pastebin and copied it into a notepad file, and saved it as foreach.inc. The problem I'm having, once I #include <foreach>, is that I get this error from the compiler:
Код:
C:\Users\Nolan\Desktop\Scripting Stuff\Sa-Mp Pawn\Pawn Scripting\pawno\Roleplayscript.pwn(115) : warning 209: function "Itter_OnPlayerDisconnect" should return a value
However, this is what is on that line:
Код:
public OnPlayerDisconnect(playerid, reason)
{
}
I included the entire thing, but the only thing on line 115 is the closing bracket }
Re: Question about foreach! -
K9IsGodly - 02.01.2014
Never mind I fixed it, I just forgot to have return 1; added in under that function.