15.01.2014, 19:21
Galera me ajudem, eu passei um FS de Admin meu todo pra dentro do GM e deu alguns erros:
RPG.pwn(2831) : error 091: ambiguous constant; tag override is required (symbol "Mensagem")
RPG.pwn(2831) : warning 215: expression has no effect
RPG.pwn(2831) : error 001: expected token: ";", but found "]"
RPG.pwn(2831) : error 029: invalid expression, assumed zero
RPG.pwn(2831) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Como podem ver tem 09234801 erros na mesma linha:
Linha 2831:
Demais linhas antes e depois da 2831:
Se alguйm poder me ajudar ficaria muito grato
RPG.pwn(2831) : error 091: ambiguous constant; tag override is required (symbol "Mensagem")
RPG.pwn(2831) : warning 215: expression has no effect
RPG.pwn(2831) : error 001: expected token: ";", but found "]"
RPG.pwn(2831) : error 029: invalid expression, assumed zero
RPG.pwn(2831) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Como podem ver tem 09234801 erros na mesma linha:
Linha 2831:
pawn Код:
if(Mensagem[i] == false)
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new cmd[256], tmp[256], string[256], MSG[128], idx, giveplayerid;
cmd = strtok(cmdtext, idx);
if(IsPlayerFlooding(playerid) && !IsPlayerAdmin(playerid)) return 1;
iPlayerChatTime[playerid] = GetTickCount();
//--- FS Admin
for(new i=0; i < MAX_PLAYERS; i++)
{
//if(IsPlayerAdmin(i))
if(IsPlayerAdmin(i) || IsAdmin[i] == 1)
{
if(Mensagem[i] == false)// linha do erro <<<<<<<<
{
new nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, nome, sizeof(nome));
format(string, sizeof(string), "[Admin] %s digitou o comando: %s", nome, cmdtext);
SendClientMessage(i, 0xF5F5DCAA, string);
}
}
}