28.11.2014, 19:27
So the thing is after entering a pickup for the first time, it works fine. After entering a pickup it shows a dialog. It has 2 options, "Yes" and "No". If i press Yes, everything works fine. If i press No, the next time i enter the pickup the dialog just wont show up. It shows up after restarting the client. Any ideas? Here's a video and one of the scripts.
http://*********/ighME9FFNN8
http://*********/HWZX3JtBt3U
http://*********/ighME9FFNN8
http://*********/HWZX3JtBt3U
Quote:
if(pickupid == HouseInfo[idx][hPickupExit]) { SetPVarInt(playerid, "PlayerHouse", idx); return ShowPlayerDialog(playerid, D_JOINHOUSE+1, 0,"Maja","Vai velaties iziet no majas?","Ja","Ne"); } |
PHP код:
case D_JOINHOUSE+1:
{
if(response)
{
new house = GetPVarInt(playerid, "PlayerHouse");
SetPlayerPos(playerid,HouseInfo[house][hEntrx],HouseInfo[house][hEntry],HouseInfo[house][hEntrz]);
AC_BS_SetPlayerInterior(playerid,0);
AC_BS_SetPlayerVirtualWorld(playerid,0);
return true;
}
}