Whats wrong with this?
#1

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;
}
Reply


Messages In This Thread
Whats wrong with this? - by Skidmarks - 27.12.2011, 19:43
Re: Whats wrong with this? - by Seven_of_Nine - 27.12.2011, 20:09
Re: Whats wrong with this? - by Skidmarks - 27.12.2011, 20:18

Forum Jump:


Users browsing this thread: 1 Guest(s)