Question about foreach!
#1

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

Never mind I fixed it, I just forgot to have return 1; added in under that function.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)