26.10.2012, 09:49
insted of useing there dialogid keep a real id like
pawn Код:
#define DIALOG_HOUSE 0
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
for(new i = 0; i<sizeof(grotticars);i++)
{
if(GetPlayerVehicleID(playerid) == grotticars[i])
{
OnDialogResponse(playerid,DIALOG_HOUSE, response, listitem, inputtext[]) //somewhere there must be error
}
else
{
}
}
}
return 1;
}