31.05.2012, 22:30
Nгo estб atualizando as ORGS,porquк se estб tudo certo?
pawn Код:
dcmd_orgs(playerid, params[])
{
new org[128],org2[128],string[2048],tmp[32],giveid;
for(new i = 1; i < MAX_ORGS; ++i)
{
format(org,128,"/RPG/orgs/%s.ini",OrgsNamesSmall[i]);
format(tmp,32,"%s",dini_Get(org, OrgsCargos[0]));
/*if(strcmp(tmp,"Nenhum",true)==0 || strlen(tmp) < 3)
{
format(org2,128,"{C2A2DA}%s: Nenhum\n",OrgsNames[i]);
continue;
}*/
if(strlen(tmp) < 3)
tmp = "Ninguйm";
giveid = ReturnUser(tmp);
if(IsPlayerConnected(giveid))
format(org2,128,"{C2A2DA} %d >> %s: %s - {00D900}Online\n", i, OrgsNames[i], tmp);
else
format(org2,128,"{C2A2DA} %d >> %s: %s - {AA3333}Offline\n", i, OrgsNames[i], tmp);
strcat(string, org2);
}
#pragma unused params
return ShowPlayerDialog(playerid, 10000, DIALOG_STYLE_MSGBOX, "Organizaзхes", string, "Fechar", "");
}