26.07.2015, 21:21
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.