[Ajuda] Erro com texto nos admins
#1

Erros
pawn Код:
41788 : error 028: invalid subscript (not an array or too many subscripts): "AdminText"
41788 : warning 215: expression has no effect
41788 : error 001: expected token: ";", but found "]"
41788 : error 029: invalid expression, assumed zero
41788 : fatal error 107: too many error messages on one line
Erros
pawn Код:
AdminText[playerid] = Create3DTextLabel("|Adm| Em Serviзo\nPosso ajudalo Senhor?!",COLOR_YELLOW,0.0,0.0,0.0,0.0,1);
Codes completo
pawn Код:
if(PlayerInfo[playerid][pAdmin] < 1)
                {
                    new Text3D:AdminText;
                    AdminText[playerid] = Create3DTextLabel("|Adm| Em Serviзo\nPosso ajudalo Senhor?!",COLOR_YELLOW,0.0,0.0,0.0,0.0,1);
                    Attach3DTextLabelToPlayer(AdminText[playerid], playerid, 0.0, 0.0, 0.75);
                }
Reply
#2

pawn Код:
new
         Text3D:AdminText[MAX_PLAYERS]
;
Reply
#3

Й

PHP код:
new Text3D:AdminText[MAX_PLAYERS]; 
Reply
#4

Not results
pawn Код:
41788 : error 033: array must be indexed (variable "AdminText")
pawn Код:
AdminText = Create3DTextLabel("|Adm| Em Serviзo\nPosso ajudalo Senhor?!",COLOR_YELLOW,0.0,0.0,0.0,0.0,1);
Reply
#5

palmface.

pawn Код:
if(PlayerInfo[playerid][pAdmin] < 1)
{
   new
        Text3D:AdminText[MAX_PLAYERS]
   ;

   AdminText[playerid] = Create3DTextLabel("|Adm| Em Serviзo\nPosso ajudalo Senhor?!", COLOR_YELLOW, 0.0, 0.0, 0.0, 0.0, 1);

   Attach3DTextLabelToPlayer(AdminText[playerid], playerid, 0.0, 0.0, 0.75);
}
Reply
#6

Puts mano.

pawn Код:
if(PlayerInfo[playerid][pAdmin] < 1)
                {
                    new Text3D:AdminText;
                    AdminText = Create3DTextLabel("|Adm| Em Serviзo\nPosso ajudalo Senhor?!",COLOR_YELLOW,0.0,0.0,0.0,0.0,1);
                    Attach3DTextLabelToPlayer(AdminText, playerid, 0.0, 0.0, 0.75);
                }
Usa este meu, nгo hб sentido criar MAX_PLAYERS (800 ?) variбveis a mais
Reply
#7

Copilo normal e coloquei na public onplayerconnect mais nao aparece nos adms
Reply
#8

Coloca em OnPlayerSpawn, e teste.
Reply
#9

n foi
Reply
#10

Se nгo me engano, vocк nгo consegue ver mesmo.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)