[DUV] Undefined Simbol?
#1

Queria Criar um Especie de Sistema VIP com Admin Entгo Seguinte
No Inicio eu Coloco
pawn Код:
new AdminLevel[MAX_PLAYERS];
Entгo Depois

no Comando

pawn Код:
if(strcmp(cmd, "/server", true) == 0)
{
if(AdminLevel[playerid] == 4)//Qual Nivel do Admin
{
if(!strlen(tmp))
{
SendClientMessage(playerid,COLOR,"Forma Correta: /server [trancar/destrancar/desligar]");
}
else if(strcmp(tmp,"trancar",true) == 0){
if(ServerTrancado == 0)
{
GetPlayerName(playerid, aName, sizeof(aName));
format(string,256," %s trancou o server",aName);
ServerTrancado = 1;
}else{
SendClientMessage(playerid, COLOR, " ja bloqueado!");
}
}
else if(strcmp(tmp,"untrancar",true) == 0){
if(ServerTrancado == 1)
{
GetPlayerName(playerid, aName, sizeof(aName));
format(string,256," %s destrancou o server",aName);
ServerTrancado = 0;
}else{
SendClientMessage(playerid, COLOR, "esta destrancado!");
}
}
else if(strcmp(tmp,"shutdown",true) == 0){
SendRconCommand("exit");
}
}else{
SendClientMessage(playerid,COLOR,"nгo tem Level Suficiente");
}
return 1;
}
Entгo da o Erro

undefined symbol "AdminLevel"

Na Linha
pawn Код:
if(AdminLevel[playerid] == 4)//Qual Nivel do Admin
O Que Fazer? Queria como fazer Sistema de Admin-Vip Com Este Levels
Reply
#2

onde vc ta colocando esse
pawn Код:
new AdminLevel[MAX_PLAYERS];
tem q coloca no topo do gm
Reply
#3

Aff Se For para Postar Merd@ nгo posta

Nгo Aprendeu a Interpretar texto nгo?

Quote:

No Inicio eu Coloco

Quote:

No Inicio eu Coloco



Entendeu? Espero que Tenha Entendido, mesmo assim obrigado pela compreensгo
Reply
#4

Posta me o teu enum para os players.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)