25.02.2012, 00:57
Comando Toscooooooo LOL TROLL
Acho que ta tudo errado !
pawn Код:
CMD: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
ShowPlayerDialog(playerid, 10000, DIALOG_STYLE_MSGBOX, "Organizaзхes", string, "Fechar", "");
return 1;
}
Acho que ta tudo errado !