Problem ShowPlayerDialog.
#1

Hello to you.

Here, I have a house system with a pickup at the entrance.
When the player enters a pickup ShowPlayerDialog appears to confirm (or not) into the house.
The problem is that the ShowPlayerDialog does not automatically appear, wait a few seconds, how to fix it?

Here's a video to better understand:

http://www.youtube.com/watch?v=E5CrL...ature=*********

My code:

pawn Код:
public OnPlayerPickUpDynamicPickup(playerid,pickupid)
{
    for(new i = 0; i < totalhouses; i++)
    {
        if(pickupid == HousePickup[i])
        {
            if(IsPlayerInRangeOfPoint(playerid, 1.0, HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
            {
                ShowPlayerDialog(playerid, 852, DIALOG_STYLE_MSGBOX, "Maison/appartement/buisness:", "Voulez-vous entrer а l'intйrieur?", "Entrer", "Quitter");
                return 1;
            }
        }
    }
    return 1;
}
Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)