error 033: array must be indexed (variable "AfkText")
#5

pawn Код:
if(strcmp(cmdtext, "/back", true) == 0)
    {
        new str[128];
        GetPlayerName(playerid, str, sizeof(str));
        format(str, sizeof(str), "{FF8000}* %s has {C0C0C0}now{FFF1AF} back from {C3C3C3}afk  ", str);
        SendClientMessageToAll(0xFFFF00AA, str);
        TogglePlayerControllable(playerid,1);
        Delete3DTextLabel(AfkText[playerid]);
        SetPlayerHealth(playerid,100);
        return 1;
     }
I just noticed that you are using Create3DTextLabel for a player, instead you should use Attach3DTextLabelToPlayer for a better function
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)