[Help] Please help
#1

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

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

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

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?
Reply
#5

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?
Reply
#6

omg no one ?
Reply
#7

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


Forum Jump:


Users browsing this thread: 2 Guest(s)