18.08.2012, 22:06
Mhm...
Dialog don't appear.
pawn Код:
if(newkeys & KEY_YES)
{
//========[Sistema HQ]==================================================
for(new h = 0; h < sizeof(Casa); h++)
{
new bouse = PlayerInfo[playerid][pBizKey];
new playerName[MAX_PLAYER_NAME];
GetPlayerName(playerid,playerName,sizeof(playerName));
if (bouse != 255 && strcmp(playerName, Casa[PlayerInfo[playerid][pHouseKey]][Owner], true) == 0)
{
if(Casa[h][HeadQuarter] == 1)
{
if(PlayerToPoint(1.0,playerid,Casa[h][EnterX],Casa[h][EnterY],Casa[h][EnterZ]))
{
new string[126];
format(string, sizeof(string), "%s",DynamicFactions[PlayerInfo[playerid][pFaction]][fName]);
ShowPlayerDialog(playerid,DIALOG_GESTIONEHQ,DIALOG_STYLE_LIST,string,"Vendi HQ\nApri/Chiudi HQ\nGestisci HQ","OK","Annulla");
}
}
}
}
return 1;
}