27.12.2011, 19:43
Iv written this code IN EVERY POSSIBLE way i can and it compiles fine however i dont get the dialog when im on foot. I really dont have a clue anymore. Please help lol.
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_SUBMISSION))
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid,0xFF00FF,"You can not use the control panel whilst inside a vehicle.");
}
else
{
ShowPlayerDialog(playerid,DIALOG_CONTROL_PANEL,DIALOG_STYLE_LIST,"Control Panel - Stunt Mania V1.0","Stats\nChange Skin", "Enter", "Close");
}
return 1;
}
return 1;
}

