new afkmsg[MAX_PLAYERS]
afkmsg[playerid] = 1;
afkmsg[playerid] = 0;
if(afkmsg[playerid != 0) return SendClientMessage(playerid,0xFF0000FF,"You must to type /back before talking!");
Add in top of script:
Code:
new afkmsg[MAX_PLAYERS] Code:
afkmsg[playerid] = 1; Code:
afkmsg[playerid] = 0; Code:
if(afkmsg[playerid != 0) return SendClientMessage(playerid,0xFF0000FF,"You must to type /back before talking!"); ![]() |
Add in top of script:
Code:
new afkmsg[MAX_PLAYERS] Code:
afkmsg[playerid] = 1; Code:
afkmsg[playerid] = 0; Code:
if(afkmsg[playerid != 0) return SendClientMessage(playerid,0xFF0000FF,"You must to type /back before talking!"); ![]() |
C:\Users\Simon\Desktop\min gamle dm server\filterscripts\afkmode.pwn(12) : error 017: undefined symbol "MAX_PLAYERS" C:\Users\Simon\Desktop\samp server\pawno\include\core.inc(12) : error 009: invalid array size (negative, zero or out of bounds) C:\Users\Simon\Desktop\min gamle dm server\filterscripts\afkmode.pwn(111) : error 001: expected token: "]", but found ")" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors. |
new afkmsg[MAX_PLAYERS]
if(afkmsg[playerid != 0) return SendClientMessage(playerid, COLOR_NORMALRED, "( ! ) You can not chat while in AFK mode");
C:\Users\Simon\Desktop\min gamle dm server\filterscripts\afkmode.pwn(12) : error 017: undefined symbol "MAX_PLAYERS" C:\Users\Simon\Desktop\samp server\pawno\include\core.inc(12) : error 009: invalid array size (negative, zero or out of bounds) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. |
Well 'undefined symbol' what do you think you should do?
Define it! #define MAX_PLAYERS x where x is the number of player slots on your server Or just put 'x' in the '[cell]' for the second error, have you been editing the default includes? because core shouldn't give that error |