26.07.2015, 20:24
Eu Queria Apenas o Sistema de Admin Pq Eu Quero Criar os Comandos .
O Sistema de Admin e Com Salvamento Sem Comandos !
O Sistema de Admin e Com Salvamento Sem Comandos !
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;
}
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.
format(string, sizeof(string), "[%s] [%s] [ID %i] *", admins, PlayerName, id);