[Ajuda] Sistema de Admin - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Sistema de Admin (
/showthread.php?tid=583207)
Sistema de Admin -
JuniorTheDM - 26.07.2015
Eu Queria Apenas o Sistema de Admin Pq Eu Quero Criar os Comandos .
O Sistema de Admin e Com Salvamento Sem Comandos !
Re: Sistema de Admin -
ipsLuan - 26.07.2015
Se ficar assim, sу Deus irб te ajudar.
Use variбvel e condiзгo, que vocк consegue.
Re: Sistema de Admin -
NegoEnsina - 26.07.2015
Satanas te ajude, amigo.
Re: Sistema de Admin -
JuniorTheDM - 26.07.2015
Ja Consegui Fazer 1 kk й coisa facil agr q percebi olhe so esse ERRO
PHP код:
CMD:admins(playerid, params[])
{
SendClientMessage(playerid, -1, "|________[{0000FF}Admins Online{FFFFFF}]________|");
new string[65];
new admins[16];
for(new id, gmp = GetMaxPlayers(); id < gmp; id++)
{
if(pInfo[id][pAdmin] >= 1 && pInfo[id][pAdmin] <= 5)
{
if(pInfo[id][pAdmin] == 1) {admins = "Admin Aprendiz";}
else if(pInfo[id][pAdmin] == 2) {admins = "Admin Moderador";}
else if(pInfo[id][pAdmin] == 3) {admins = "Admin Master";}
else if(pInfo[id][pAdmin] == 4) {admins = "Admin Sub-Dono";}
else if(pInfo[id][pAdmin] == 5) {admins = "Admin-Dono";}
// LINHA COM ERRO !// format(string, 128, "[%s] [%s] [ID %i] *", admins, PlayerName, id);
}
}
SendClientMessage(playerid, -1, string);
return true;
}
PHP код:
C:\Users\Usuario\Desktop\SV\gamemodes\TEST.pwn(934) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Re: Sistema de Admin -
JuniorTheDM - 26.07.2015
Resolvido !
Re: Sistema de Admin -
s4kuL - 26.07.2015
PHP код:
format(string, sizeof(string), "[%s] [%s] [ID %i] *", admins, PlayerName, id);