SA-MP Forums Archive
[Help] Please 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: [Help] Please help (/showthread.php?tid=178683)



[Help] Please help - xir - 23.09.2010

Hello i tryed to make afk system but got alot of errors :/

Here is the pawn http://pastebin.com/2kwj5v7Q

Here are the errors:

Quote:

C:\Programmer\Server\filterscripts\AFK.pwn(22) : warning 217: loose indentation
C:\Programmer\Server\filterscripts\AFK.pwn(22) : error 029: invalid expression, assumed zero
C:\Programmer\Server\filterscripts\AFK.pwn(22) : error 004: function "OnFilterScriptExit" is not implemented
C:\Programmer\Server\filterscripts\AFK.pwn(3 : warning 225: unreachable code
C:\Programmer\Server\filterscripts\AFK.pwn(3 : error 029: invalid expression, assumed zero
C:\Programmer\Server\filterscripts\AFK.pwn(3 : error 004: function "afk_OnPlayerConnect" is not implemented
C:\Programmer\Server\filterscripts\AFK.pwn(40) : error 017: undefined symbol "playerid"
C:\Programmer\Server\filterscripts\AFK.pwn(44) : warning 225: unreachable code
C:\Programmer\Server\filterscripts\AFK.pwn(44) : error 029: invalid expression, assumed zero
C:\Programmer\Server\filterscripts\AFK.pwn(44) : error 004: function "afk_OnPlayerDisconnect" is not implemented
C:\Programmer\Server\filterscripts\AFK.pwn(46) : error 017: undefined symbol "playerid"
C:\Programmer\Server\filterscripts\AFK.pwn(50) : warning 225: unreachable code
C:\Programmer\Server\filterscripts\AFK.pwn(50) : error 029: invalid expression, assumed zero
C:\Programmer\Server\filterscripts\AFK.pwn(50) : error 004: function "afk_OnPlayerText" is not implemented
C:\Programmer\Server\filterscripts\AFK.pwn(52) : error 017: undefined symbol "playerid"
C:\Programmer\Server\filterscripts\AFK.pwn(54) : error 017: undefined symbol "playerid"
C:\Programmer\Server\filterscripts\AFK.pwn(60) : warning 225: unreachable code
C:\Programmer\Server\filterscripts\AFK.pwn(60) : error 029: invalid expression, assumed zero
C:\Programmer\Server\filterscripts\AFK.pwn(60) : error 017: undefined symbol "cmd_afk"
C:\Programmer\Server\filterscripts\AFK.pwn(60) : error 029: invalid expression, assumed zero
C:\Programmer\Server\filterscripts\AFK.pwn(60) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


16 Errors.

pls help me


Re: [Help] Please help - DeathOnaStick - 23.09.2010

You forgot the closing bracket at OnFilterScriptInit().
Should look like this:

pawn Код:
public OnFilterScriptInit()
{
        print("\n--------------------------------------");
        print(" AFK System by ------");
        print("--------------------------------------\n");
}
I think this should be it.


Re: [Help] Please help - Mike_Peterson - 23.09.2010

probably missing a bracket (}) check where u last scripted
probably CMD:afk and CMD:back try adding a extra bracket ( } ) there.
edit: nice timing, it is at filterscriptinit i see.


Re: [Help] Please help - xir - 24.09.2010

Thanks It worked!

Edit: when im ingame and i type /afk & /back it wont work.. nothing happends not even "server : unknown command" or anything.. This also happends to the other filterscript.. what is causing this?


Re: [Help] Please help - xir - 24.09.2010

pls help me guys

when im ingame and i type /afk & /back it wont work.. nothing happends not even "server : unknown command" or anything.. This also happends to the other filterscript.. what is causing this?


Re: [Help] Please help - xir - 24.09.2010

omg no one ?


Re: [Help] Please help - Mike_Peterson - 24.09.2010

may i ask why ur doing afk_onplayerconnect and afk_onplayertext? i dont seem to see a reason for that...