So i made my /admins command but i keep getting errors on this line , now this is what i want this line to do, i want it to check if the admins are afk and if they r it should show "AFK" Beside his/her name..
PHP Code:
if(pInfo[i][OnDuty] == 1) strcat(iTag, "{1A661A}ON-DUTY ");
if(Afk(i) == 1) strcat(iTag, "AFK "); // line with the error
format(astring, sizeof(astring), " %s %s (ID: %d) %s", AdminLevelName(i), GetName(i), i, iTag);
SendClientMessage(playerid, 0xe1e3e6FF,astirng);
PHP Code:
C:\Users\Andre'\Desktop\Andre'\samp\gamemodes\ODA.pwn(4976) : error 012: invalid function call, not a valid address
C:\Users\Andre'\Desktop\Andre'\samp\gamemodes\ODA.pwn(4976) : warning 215: expression has no effect
C:\Users\Andre'\Desktop\Andre'\samp\gamemodes\ODA.pwn(4976) : error 001: expected token: ";", but found ")"
C:\Users\Andre'\Desktop\Andre'\samp\gamemodes\ODA.pwn(4976) : error 029: invalid expression, assumed zero
C:\Users\Andre'\Desktop\Andre'\samp\gamemodes\ODA.pwn(4976) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.