05.12.2013, 16:05
All I can see is that you're unfreezing them in the code above.
However, I do see is that you're checking dialogid 6 INSIDE dialogid 0, which shouldn't be, at all.
However, I do see is that you're checking dialogid 6 INSIDE dialogid 0, which shouldn't be, at all.
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 0)//Class
{
if(response)
{
if(listitem == 0)
{
if(GetPlayerScore(playerid) >= 0)
{
SendClientMessage(playerid, blue, "*You have chosen the Trucker Class");
SetPlayerPos(playerid, 0,0,3.0);
ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Choose Your Spawn", "Los Santos Depot","Spawn", "");
TogglePlayerControllable(playerid, 1);
gPlayerClass[playerid] = TRUCKER;
PickedClass[playerid] = 1;
SetPlayerVirtualWorld(playerid, 0);
}
}
// ...
}
}
if(dialogid == 6)//Spawn
{
if(response)
{
if(listitem == 0)
{
SetPlayerPos(playerid, 2483.5586,-2119.3044,13.5469);
TogglePlayerControllable(playerid, 1);
}
}
// ...
}
}