C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(5892) : error 017: undefined symbol "string" C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(5892) : error 017: undefined symbol "string" C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(5892) : error 029: invalid expression, assumed zero C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(5892) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
format(string, sizeof(string), "Vocк foi promovido a nнvel %s de admin, pelo admin %s Sua Funcao %s", lolz, sendername, funcao) |
new string[128];
C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(5891) : warning 219: local variable "sendername" shadows a variable at a preceding level C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(5896) : error 035: argument type mismatch (argument 1) C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(5896) : error 035: argument type mismatch (argument 1) C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(589 : error 017: undefined symbol "arquivo" C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(589 : error 017: undefined symbol "arquivo" C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(589 : error 029: invalid expression, assumed zero C:\Users\Usuario\Desktop\Server Samp\gamemodes\BPS.pwn(589 : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors. |
CMD:darfuncao(playerid, params[]) { new admin, funcao[56]; new string[128]; new sendername[MAX_PLAYER_NAME]; if(PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, COLOR_GRAD2, "Comando restrito apenas pra administradores."); if(sscanf(params, "us[56]", admin, funcao)) return SendClientMessage(playerid, COLOR_GRAD1, "USE: /criar_funcao [{E01B4C}id/nome{B4B5B7}] [{249E33}funзгo{B4B5B7}]"); format(string, sizeof(string), "O Admin Setou Sua %s Funзao Para [%s]", sendername, funcao); SendClientMessage(admin, LIGHTBLUE, string); format(pAdmin, sizeof(string), "Vocк promoveu %s а funзгo %s de administraзгo.", sendername, funcao); SendClientMessage(playerid, LIGHTBLUE, string); format(arquivo, sizeof(arquivo), "Contas/%s.ini", sendername)); DOF2_SetString(arquivo, "Funcao", funcao); DOF2_SaveFile(); format(PlayerInfo[admin][Funcao], 60, "%s", DOF2_GetString(arquivo, "Funcao")); return 1; } |
CMD:darfuncao(playerid, params[]) {
new admin, funcao[56], string[128], arquivo[128];
new sendername[MAX_PLAYER_NAME];
if(PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, COLOR_GRAD2, "Comando restrito apenas pra administradores.");
if(sscanf(params, "us[56]", admin, funcao)) return SendClientMessage(playerid, COLOR_GRAD1, "USE: /criar_funcao [{E01B4C}id/nome{B4B5B7}] [{249E33}funзгo{B4B5B7}]");
format(string, sizeof(string), "O Admin Setou Sua %s Funзao Para [%s]", sendername, funcao);
SendClientMessage(admin, LIGHTBLUE, string);
format(pAdmin, sizeof(string), "Vocк promoveu %s а funзгo %s de administraзгo.", sendername, funcao);
SendClientMessage(playerid, LIGHTBLUE, string);
format(arquivo, sizeof(arquivo), "Contas/%s.ini", sendername));
DOF2_SetString(arquivo, "Funcao", funcao);
DOF2_SaveFile();
format(PlayerInfo[admin][Funcao], 60, "%s", DOF2_GetString(arquivo, "Funcao"));
return 1;
}
Skull me add skype pfv , meu sistema de funcao ta dando errado
SKYPE : mentos.mirto |
CMD:admins(playerid, params[]) { SendClientMessage(playerid, COR_ADMIN, "Admins Online:"); foreach(Player, i) { if(PlayerInfo[i][pAdmin] > 0 || PlayerInfo[i][pAdminTemp] > 0) { if(admhide[i] == 0) { GetPlayerName(i, sendername, sizeof(sendername)); new lolz[40], funcao[56]; if(PlayerInfo[i][pAdminTemp] == 1)lolz = "TEMPORБRIO"; if(PlayerInfo[i][pAdmin] == 1)lolz = "1"; if(PlayerInfo[i][pAdmin] == 2)lolz = "2"; if(PlayerInfo[i][pAdmin] == 3)lolz = "3"; if(PlayerInfo[i][pAdmin] == 4)lolz = "4"; if(PlayerInfo[i][pAdmin] == 5)lolz = "5"; if(PlayerInfo[i][pAdmin] == 1337)lolz = "MASTER"; if(PlayerInfo[i][pAdmin] == 133lolz = "RESP. LIDERES"; if(PlayerInfo[i][pAdmin] == 1339)lolz = "RESP. ADM/HELPER"; if(PlayerInfo[i][pAdmin] == 1340)lolz = "RESP. EDIЗOES"; if(PlayerInfo[i][pAdmin] == 3001)lolz = "Sub-Dono"; if(PlayerInfo[i][pAdmin] == 5000)lolz = "Fundador"; new string[128]; if(admtrampando[i] == 1) { format(string, 128, "Admin: %s Nнvel: [%s] Funзao:[%s]", sendername, lolz, funcao); SendClientMessage(playerid,COLOR_GRAD1,string); } else { format(string, 128, "Admin: %s Nнvel: [%s][JOGANDO]", sendername, lolz, funcao); SendClientMessage(playerid,COLOR_GRAD1,string); } } } } return true; } |
CMD:admins(playerid, params[])
{
SendClientMessage(playerid, COR_ADMIN, "Admins Online:");
foreach(Player, i)
{
if(PlayerInfo[i][pAdmin] > 0 || PlayerInfo[i][pAdminTemp] > 0)
{
if(admhide[i] == 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
new lolz[40], funcao[56];
if(PlayerInfo[i][pAdminTemp] == 1)lolz = "TEMPORБRIO";
if(PlayerInfo[i][pAdmin] == 1)lolz = "1";
if(PlayerInfo[i][pAdmin] == 2)lolz = "2";
if(PlayerInfo[i][pAdmin] == 3)lolz = "3";
if(PlayerInfo[i][pAdmin] == 4)lolz = "4";
if(PlayerInfo[i][pAdmin] == 5)lolz = "5";
if(PlayerInfo[i][pAdmin] == 1337)lolz = "MASTER";
if(PlayerInfo[i][pAdmin] == 133lolz = "RESP. LIDERES";
if(PlayerInfo[i][pAdmin] == 1339)lolz = "RESP. ADM/HELPER";
if(PlayerInfo[i][pAdmin] == 1340)lolz = "RESP. EDIЗOES";
if(PlayerInfo[i][pAdmin] == 3001)lolz = "Sub-Dono";
if(PlayerInfo[i][pAdmin] == 5000)lolz = "Fundador";
new string[128];
if(admtrampando[i] == 1)
{
format(string, 128, "Admin: %s Nнvel: [%s] Funзao:[%s]", sendername, lolz, PlayerInfo[i][Funcao]);
SendClientMessage(playerid,COLOR_GRAD1,string);
}
else
{
format(string, 128, "Admin: %s Nнvel: [%s] Funзao:[%s] [JOGANDO]", sendername, lolz, PlayerInfo[i][Funcao]);
SendClientMessage(playerid,COLOR_GRAD1,string);
}
}
}
}
return true;
}
format(string, 128, "Admin: %s Nнvel: [%s] Funзao:[%s]", [sendername], [lolz], [funcao]); |