SA-MP Forums Archive
OnPlayrKeyStateChange problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayrKeyStateChange problem (/showthread.php?tid=370041)



OnPlayrKeyStateChange problem - JustLuca - 18.08.2012

Mhm...

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;
        }
Dialog don't appear.


Re: OnPlayrKeyStateChange problem - ReVo_ - 18.08.2012

Debug.

https://sampwiki.blast.hk/wiki/Debugging