C:\Users\Pedro Tramontina\Desktop\Projetos 2018\filterscripts\ladmin4v2.pwn(1445) : error 021: symbol already defined: "SetTimer"
C:\Users\Pedro Tramontina\Desktop\Projetos 2018\filterscripts\ladmin4v2.pwn(1497) : error 017: undefined symbol "AdminSkin2"
C:\Users\Pedro Tramontina\Desktop\Projetos 2018\filterscripts\ladmin4v2.pwn(3010) : error 017: undefined symbol "AdminSkin2"
C:\Users\Pedro Tramontina\Desktop\Projetos 2018\filterscripts\ladmin4v2.pwn(8277) : warning 235: public function lacks forward declaration (symbol "ProcessarCadeiaSegundo")
C:\Users\Pedro Tramontina\Desktop\Projetos 2018\filterscripts\ladmin4v2.pwn(8996) : error 017: undefined symbol "AdminSkin2"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
forward AtualizarChatBubble();
public AtualizarChatBubble()
{
for(new x=0; x < MAX_PLAYERS; x++)
{
if(PlayerInfo[x][Level] >= 5)
{
SetPlayerChatBubble(x, "Desenvolvedor(a)", 0x328E0AAA, 100.0, 100000);
}
if(PlayerInfo[x][Level] >= 4)
{
SetPlayerChatBubble(x, "Administrador(a)", 0x008bceAA, 100.0, 100000);
}
if(PlayerInfo[x][Level] >= 3)
{
SetPlayerChatBubble(x, "Moderador(a)", 0xFF8C00AA, 100.0, 100000);
}
if(PlayerInfo[x][Level] >= 2)
{
SetPlayerChatBubble(x, "Sub-Administrador(a)", 0x008bceAA, 100.0, 100000);
}
if(PlayerInfo[x][Level] >= 1)
{
SetPlayerChatBubble(x, "Ajudante", 0xFFFF00AA, 100.0, 100000);
}
}
return 1;
}
SetTimer("AtualizarChatBubble", 1000, true);
error 021: symbol already defined: "SetTimer"
error 017: undefined symbol "AdminSkin2"
warning 235: public function lacks forward declaration (symbol "ProcessarCadeiaSegundo")
Код:
error 021: symbol already defined: "SetTimer" Код:
error 017: undefined symbol "AdminSkin2" Код:
warning 235: public function lacks forward declaration (symbol "ProcessarCadeiaSegundo") |
Olб estou criando tags em cima da cabeзa de um "adm". Porem quando vou copilar da erro em outros lugares do gm,eu sei que й o forward que estou criando pois quando eu os removo ele copila dboa.
ERROS: PHP код:
PHP код:
|
SetTimer("AtualizarChatBubble", 1000, true); //No Topo Junto com os SetTimer forward AtualizarChatBubble(); public AtualizarChatBubble() { for(new x=0; x < MAX_PLAYERS; x++) { if(pAdmin[x] == 5) { SetPlayerChatBubble(x, "Desenvolvedor(a)", 0x328E0AAA, 100.0, 100000); } if(pAdmin[x] == 4) { SetPlayerChatBubble(x, "Administrador(a)", 0x008bceAA, 100.0, 100000); } if(pAdmin[x] == 3) { SetPlayerChatBubble(x, "Moderador(a)", 0xFF8C00AA, 100.0, 100000); } if(pAdmin[x] == 2) { SetPlayerChatBubble(x, "Admin-Geral", 0xc32407AA, 100.0, 100000); } if(pAdmin[x] == 1) { SetPlayerChatBubble(x, "Ajudante", 0xFFFF00AA, 100.0, 100000); } } } //No Final da Gamemode
Seu ChatBubble й muinto parecido com Um que eu ja vi Mais vamos la, eu usei um ingual o seu olha, e deu certo de 1
Код:
SetTimer("AtualizarChatBubble", 1000, true); //No Topo Junto com os SetTimer forward AtualizarChatBubble(); public AtualizarChatBubble() { for(new x=0; x < MAX_PLAYERS; x++) { if(pAdmin[x] == 5) { SetPlayerChatBubble(x, "Desenvolvedor(a)", 0x328E0AAA, 100.0, 100000); } if(pAdmin[x] == 4) { SetPlayerChatBubble(x, "Administrador(a)", 0x008bceAA, 100.0, 100000); } if(pAdmin[x] == 3) { SetPlayerChatBubble(x, "Moderador(a)", 0xFF8C00AA, 100.0, 100000); } if(pAdmin[x] == 2) { SetPlayerChatBubble(x, "Admin-Geral", 0xc32407AA, 100.0, 100000); } if(pAdmin[x] == 1) { SetPlayerChatBubble(x, "Ajudante", 0xFFFF00AA, 100.0, 100000); } } } //No Final da Gamemode |
forward AtualizarChatBubble();
public AtualizarChatBubble()
{
for(new x=0; x < MAX_PLAYERS; x++)
{
if(PlayerInfo[x][Level] >= 5)
{
SetPlayerChatBubble(x, "Desenvolvedor(a)", 0x328E0AAA, 100.0, 100000);
}
if(PlayerInfo[x][Level] >= 4)
{
SetPlayerChatBubble(x, "Administrador(a)", 0x008bceAA, 100.0, 100000);
}
if(PlayerInfo[x][Level] >= 3)
{
SetPlayerChatBubble(x, "Moderador(a)", 0xFF8C00AA, 100.0, 100000);
}
if(PlayerInfo[x][Level] >= 2)
{
SetPlayerChatBubble(x, "Admin-Geral", 0xc32407AA, 100.0, 100000);
}
if(PlayerInfo[x][Level] >= 1)
{
SetPlayerChatBubble(x, "Ajudante", 0xFFFF00AA, 100.0, 100000);
}
}
}
Muito obrigado man,tipo atй copilou,porem na hora de testar apenas o level 1 (ajudante) que pego a tag,quando coloco pra ser level 2 por exemplo,ele ainda continua "ajudante"
PHP код:
|
forward AtualizarChatBubble();
public AtualizarChatBubble()
{
for(new x=0; x <= GetPlayerPoolSize(); x++) {
if(!IsPlayerConnected(x)) continue;
switch(PlayerInfo[x][Level]) {
case 5: SetPlayerChatBubble(x, "Desenvolvedor(a)", 0x328E0AAA, 100.0, 2000);
case 4: SetPlayerChatBubble(x, "Administrador(a)", 0x008bceAA, 100.0, 2000);
case 3: SetPlayerChatBubble(x, "Moderador(a)", 0xFF8C00AA, 100.0, 2000);
case 2: SetPlayerChatBubble(x, "Admin-Geral", 0xc32407AA, 100.0, 2000);
case 1: SetPlayerChatBubble(x, "Ajudante", 0xFFFF00AA, 100.0, 2000);
}
}
}
Tente
PHP код:
|
C:\Users\Pedro Tramontina\Desktop\Projetos 2018\filterscripts\ladmin4v2.pwn(8248) : warning 235: public function lacks forward declaration (symbol "ProcessarCadeiaSegundo")
C:\Users\Pedro Tramontina\Desktop\Projetos 2018\filterscripts\ladmin4v2.pwn(9508) : error 017: undefined symbol "GetPlayerPoolSize"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
da esse erro man
PHP код:
|
forward AtualizarChatBubble();
public AtualizarChatBubble()
{
for(new x=0; x < GetMaxPlayers(); x++) {
if(!IsPlayerConnected(x)) continue;
switch(PlayerInfo[x][Level]) {
case 5: SetPlayerChatBubble(x, "Desenvolvedor(a)", 0x328E0AAA, 100.0, 2000);
case 4: SetPlayerChatBubble(x, "Administrador(a)", 0x008bceAA, 100.0, 2000);
case 3: SetPlayerChatBubble(x, "Moderador(a)", 0xFF8C00AA, 100.0, 2000);
case 2: SetPlayerChatBubble(x, "Admin-Geral", 0xc32407AA, 100.0, 2000);
case 1: SetPlayerChatBubble(x, "Ajudante", 0xFFFF00AA, 100.0, 2000);
}
}
}