[Ajuda] Erro ao compilar
#1

Erros:
pawn Код:
(14300) : error: 017: undefined symbol "Player"
(14300) : error: 001: expected token: ";", but found "]"
(14300) : error: 029: invalid expression, assumed zero
(14300) : error fatal: 107: too many error messages on one line
Linha do erro:
pawn Код:
new t = Player[playerid][pTorcida];
Cmd completo:
pawn Код:
if(newkeys == KEY_SECONDARY_ATTACK)
    {
        new t = Player[playerid][pTorcida];
        if(PlayerToPoint(1.0, playerid, Torcidas[t][Spawn][0], Torcidas[t][Spawn][1], Torcidas[t][Spawn][2]))
        {
            ShowPlayerDialog(playerid, DIALOG_MENUSEDE, DIALOG_STYLE_LIST, Torcidas[t][tNome], "Entrar na Sede\nMembros Online\nDiretoria\nAdministrar Torcida", "Selecionar", "Cancelar");
            new Float:Pos[3];
            GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
            SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]+1);
        }
    }
Reply
#2

Vocк tem a variavel Player junto com a enum criada? veja no topo do GM/FS.
Reply
#3

Quote:
Originally Posted by ReDKiiL
Посмотреть сообщение
Vocк tem a variavel Player junto com a enum criada? veja no topo do GM/FS.
Man ja resolvi esse erro, agr ta nessa linha aq
pawn Код:
if(PlayerToPoint(1.0, playerid, Torcidas[t][Spawn][0], Torcidas[t][Spawn][1], Torcidas[t][Spawn][2]))
com esses erros
pawn Код:
error 001: expected token: ",", but found "["
error 029: invalid expression, assumed zero
error 001: expected token: ";", but found "]"
fatal error 107: too many error messages on one line
Reply
#4

Manda uma parte de Array torcidas.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)