if(response == 1)
{
if(listitem == 0)//Contratos
{
new searchhit = 0;
new searchass = 0;
if(IsPlayerConnected(i)) (ERRO APRESENTADO AQUI)
{
if(searchhit == 0)
{
strcat(gs_Buffer, "Organizaзгo\tNick/ID\tValor\n");
format(gstring,sizeof(string), "[%s]\t %s[%d]\t R${ff00FF}[%d]\n", NomeORG(i), PlayerName(i), i, PlayerInfo[i][pHeadValue]); (ERRO APRESENTADO AQUI)
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;
}
}
}
}
for(new i = 0; i < MAX_PLAYERS; i++) {
if(listitem == 0)//Contratos
{
new i;
new searchhit = 0;
new searchass = 0;
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;
}
}
}
}
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;
}
}
}
}
}
new searchhit = 0;
new searchass = 0;
if(listitem == 0)
{
new searchhit = 0;
new searchass = 0;
strcat(gs_Buffer, "Organizaзгo\tNick/ID\tValor\n");
for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
{
if(IsPlayerConnected(i))
{
if(searchhit == 0 && searchass == 0)
format(gs_Buffer, sizeof(gs_Buffer), "%s\n[%s]\t %s[%d]\t R${ff00FF}[%d]\n", gs_Buffer, GetPlayerOrg(i), PlayerName(i), i, PlayerInfo[i][pHeadValue]);
}
}
if(GetPlayerOrg(playerid) == 8 || GetPlayerOrg(playerid) == 26)
{
ConnectedToPC[playerid] = 0;
ShowPlayerDialog(playerid, 25876, DIALOG_STYLE_TABLIST_HEADERS, "Lista de Contratos", gs_Buffer, "Pegar","Voltar");
return 1;
}
}
Tentei da forma que voce falou ferrari e olha como ficou a dialog.. o contrato ficou em mim mesmo
https://imgur.com/a/RS9f8P1 |
Vocк usou o script da maneira que enviei ? acho que nгo. Quanto ao problema do contrato, qual variбvel vocк usa pra identificar se um player estб em contrato ? faзa uma condiзгo verificando se o player estб em contrato, caso a condiзгo seja verdadeira irб executar a funзгo do format.
|