[Ajuda]Deu um erro
#1

Galera deu um erro aqui na hora de copilar e nгo consigo resouver

Quote:

C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(33) : warning 201: redefinition of constant/macro (symbol "VERDE")
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(102) : warning 201: redefinition of constant/macro (symbol "AZUL")
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(109) : warning 201: redefinition of constant/macro (symbol "DIALOG_INFO")
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(129) : warning 201: redefinition of constant/macro (symbol "ROXO")
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(134) : warning 201: redefinition of constant/macro (symbol "AMARELO")
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(135) : warning 201: redefinition of constant/macro (symbol "VERMELHO")
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(141) : warning 201: redefinition of constant/macro (symbol "CINZA")
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(263) : warning 201: redefinition of constant/macro (symbol "LARANJA")
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(266) : warning 201: redefinition of constant/macro (symbol "BRANCO")
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(48560) : error 017: undefined symbol "gmx"
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(48562) : error 017: undefined symbol "PlayerDados"
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(48562) : warning 215: expression has no effect
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(48562) : error 001: expected token: ";", but found "]"
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(48562) : error 029: invalid expression, assumed zero
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(48562) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Reply
#2

Quote:
Originally Posted by GustavoPontes
Посмотреть сообщение
Galera deu um erro aqui na hora de copilar e nгo consigo resouver
Manda as Linha do error
Reply
#3

Quote:

CMD:gmx(playerid, params[])
{
if(PlayerDados[playerid][Admin] < 1340) return SendClientMessage(playerid, BRANCO, "Vocк precisa ser admin nivel 1340 para usar este comando!");
if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Vocк precisa /trabalhar para usar esse comando!");
format(String, sizeof(String), "[ADMIN] O Admin {1B95E0}%s{00C2EC} Deu GMX no servidor, em alguns segundos ele serб reiniciado", Nome(playerid));
SendClientMessageToAll(AZUL_CLARO, String);
SendRconCommand("gmx");
return 1;
}

CMD:invisivel(playerid, params[])
{
if(PlayerDados[playerid][Admin] < 1339) return SendClientMessage(playerid, BRANCO, "Vocк precisa ser admin nivel 4 para usar este comando!");
if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Vocк precisa /trabalhar para usar esse comando!");
if(PlayerDados[playerid][Invisivel] == true) return SendClientMessage(playerid, CINZA, "[LL ADMIN] Vocк ja estб invisivel!");
SetPlayerVirtualWorld(playerid, 5);
PlayerDados[playerid][Invisivel] = true;
SendClientMessage(playerid, AZUL_CLARO, "Use /visivel para ficar visivel novamente");
return 1;
}

CMD:visivel(playerid, params[])
{
if(PlayerDados[playerid][Admin] < 1339) return SendClientMessage(playerid, BRANCO, "Vocк precisa ser admin nivel 4 para usar este comando!");
if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Vocк precisa /trabalhar para usar esse comando!");
if(PlayerDados[playerid][Invisivel] == false) return SendClientMessage(playerid, CINZA, "[LL ADMIN] Vocк nгo estб invisivel!");
SetPlayerVirtualWorld(playerid, 0);
PlayerDados[playerid][Invisivel] = false;
SendClientMessage(playerid, AZUL_CLARO, "Vocк estб visivel novamente!");
return 1;
}

e as primeiras era pra definir as cores
Quote:

#define VERDE 0x21DD00FF
#define VERMELHO 0xFF030FFF
#define VERMELHO_ESCURO 0xE60000FF
#define VERMELHO_CLARO 0xFB0000FF
#define AMARELO 0xFFFF00FF
#define LARANJA 0xF97804FF
#define AZUL_CLARO 0x00C2ECFF
#define ROXO 0xB360FDFF
#define BRANCO 0xFFFFFFFF
#define PRETO 0x000000FF
#define AZUL 0x1229FAFF
#define VERDE_CLARO 0x38FF06FF
#define ROSA_CHOQUE 0xE100E1FF
#define VERDE_ESCURO 0x008040FF
#define CINZA 0xCECECEFF
#define ROSA 0xD52DFFFF
#define CINZA_ESCURO 0x626262FF
#define VERDE_AGUA 0x03D687FF

#define DIALOG_REGISTRO 4672
#define DIALOG_LOGIN 4673
#define DIALOG_BANIDO 4674
#define DIALOG_IPS 4675
#define DIALOG_INFO 4676
#define DIALOG_AL 4677

Reply
#4

Aki nгo deu esses erros ai nгo. oq sera q pode ser.
Reply
#5

Galera deu um erro aqui na hora de copilar e nгo consigo resouver

Cita:
Quote:

C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(33) : warning 201: redefinition of constant/macro (symbol "VERDE")
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(102) : warning 201: redefinition of constant/macro (symbol "AZUL")
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(109) : warning 201: redefinition of constant/macro (symbol "DIALOG_INFO")
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(129) : warning 201: redefinition of constant/macro (symbol "ROXO")
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(134) : warning 201: redefinition of constant/macro (symbol "AMARELO")
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(135) : warning 201: redefinition of constant/macro (symbol "VERMELHO")
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(141) : warning 201: redefinition of constant/macro (symbol "CINZA")
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(263) : warning 201: redefinition of constant/macro (symbol "LARANJA")
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(266) : warning 201: redefinition of constant/macro (symbol "BRANCO")
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(48560) : error 017: undefined symbol "gmx"
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(48562) : error 017: undefined symbol "PlayerDados"
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(48562) : warning 215: expression has no effect
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(48562) : error 001: expected token: ";", but found "]"
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(48562) : error 029: invalid expression, assumed zero
C:\Users\Gustavo\Desktop\btg\gamemodes\SAMPFOREVER N.PWN(48562) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

As linhas

[/QUOTE]CMD:gmx(playerid, params[])
{
if(PlayerDados[playerid][Admin] < 1340) return SendClientMessage(playerid, BRANCO, "Vocк precisa ser admin nivel 1340 para usar este comando!");
if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Vocк precisa /trabalhar para usar esse comando!");
format(String, sizeof(String), "[ADMIN] O Admin {1B95E0}%s{00C2EC} Deu GMX no servidor, em alguns segundos ele serб reiniciado", Nome(playerid));
SendClientMessageToAll(AZUL_CLARO, String);
SendRconCommand("gmx");
return 1;
}

CMD:invisivel(playerid, params[])
{
if(PlayerDados[playerid][Admin] < 1339) return SendClientMessage(playerid, BRANCO, "Vocк precisa ser admin nivel 4 para usar este comando!");
if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Vocк precisa /trabalhar para usar esse comando!");
if(PlayerDados[playerid][Invisivel] == true) return SendClientMessage(playerid, CINZA, "[LL ADMIN] Vocк ja estб invisivel!");
SetPlayerVirtualWorld(playerid, 5);
PlayerDados[playerid][Invisivel] = true;
SendClientMessage(playerid, AZUL_CLARO, "Use /visivel para ficar visivel novamente");
return 1;
}

CMD:visivel(playerid, params[])
{
if(PlayerDados[playerid][Admin] < 1339) return SendClientMessage(playerid, BRANCO, "Vocк precisa ser admin nivel 4 para usar este comando!");
if(PlayerDados[playerid][Trabalhando] == false) return SendClientMessage(playerid, CINZA, "Vocк precisa /trabalhar para usar esse comando!");
if(PlayerDados[playerid][Invisivel] == false) return SendClientMessage(playerid, CINZA, "[LL ADMIN] Vocк nгo estб invisivel!");
SetPlayerVirtualWorld(playerid, 0);
PlayerDados[playerid][Invisivel] = false;
SendClientMessage(playerid, AZUL_CLARO, "Vocк estб visivel novamente!");
return 1;
}[/QUOTE]
e as primeiras era pra definir as cores

[/QUOTE]#define VERDE 0x21DD00FF
#define VERMELHO 0xFF030FFF
#define VERMELHO_ESCURO 0xE60000FF
#define VERMELHO_CLARO 0xFB0000FF
#define AMARELO 0xFFFF00FF
#define LARANJA 0xF97804FF
#define AZUL_CLARO 0x00C2ECFF
#define ROXO 0xB360FDFF
#define BRANCO 0xFFFFFFFF
#define PRETO 0x000000FF
#define AZUL 0x1229FAFF
#define VERDE_CLARO 0x38FF06FF
#define ROSA_CHOQUE 0xE100E1FF
#define VERDE_ESCURO 0x008040FF
#define CINZA 0xCECECEFF
#define ROSA 0xD52DFFFF
#define CINZA_ESCURO 0x626262FF
#define VERDE_AGUA 0x03D687FF

#define DIALOG_REGISTRO 4672
#define DIALOG_LOGIN 4673
#define DIALOG_BANIDO 4674
#define DIALOG_IPS 4675
#define DIALOG_INFO 4676
#define DIALOG_AL 4677[/QUOTE]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)