16.04.2019, 15:56
Tenta assim:
PHP Code:
if(listitem == 0)
{
new searchhit = 0;
new searchass = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(searchhit == 0)
if(searchass == 0)
{
strcat(gs_Buffer, "Organizaзгo\tNick/ID\tValor\n");
format(gstring,sizeof(string), "[%s]\t %s[%d]\t R${ff00FF}[%d]\n", GetPlayerOrg(i), PlayerName(i), i, PlayerInfo[i][pHeadValue]);
if(GetPlayerOrg(playerid) == 8)
{
ConnectedToPC[playerid] = 0;
ShowPlayerDialog(playerid, 25876, DIALOG_STYLE_TABLIST_HEADERS, "Lista de Contratos", gs_Buffer, "Pegar","Voltar");
strcat(gs_Buffer,string);
return 1;
}
else if(GetPlayerOrg(playerid) == 26)
{
ConnectedToPC[playerid] = 0;
ShowPlayerDialog(playerid, 25876, DIALOG_STYLE_TABLIST_HEADERS, "Lista de Contratos", gs_Buffer, "Pegar","Voltar");
strcat(gs_Buffer,string);
return 1;
}
}
}
}
}