01/07/2022 17:28
Teste assim
Código PHP:
CMD:meusportoes(playerid)
{
new count,Str[300],string[128];
strcat(Str, "ID\tSenha\n");
for(new p; p < Max_Portoes; p++)
{
if(DOF2_FileExists(PachPortoes(p)))
{
if(strcmp(PlayerName(playerid), DOF2_GetString(PachPortoes(p), "Dono")) == 0)
{
format(string, sizeof(string), "Portao: %d\t%s\n", p, DOF2_GetString(PachPortoes(p),"Senha"));
strcat(Str, string);
MeusPortoes[playerid][p] = p;
count ++;
}
}
}
if(!count) return Msg(playerid,-1,"INFO: Voce nao tem nehum portao!");
ShowPlayerDialog(playerid, 23, 5, "Meus Portoes", Str, "Selecionar", "Cancelar");
return 1;
}
if(dialogid == 23 && response)
{
new str[64];
for(new p; p < Max_Portoes; p++)
{
format(str, sizeof(str), "Portao: %d", p);
if(strfind(inputtext, str, true) != -1)
{
format(str, sizeof(str), "Portao: %d Selecionado", p);
SendClientMessage(playerid, -1, str);
return true;
}
}
return true;
}
k2bi#9906
[C.E.O]Brasil Play Socity
[C.E.O]Brasil Play Socity