Whats wrong with this? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Whats wrong with this? (
/showthread.php?tid=306738)
Whats wrong with this? -
Skidmarks - 27.12.2011
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;
}
Re: Whats wrong with this? -
Seven_of_Nine - 27.12.2011
Aaa maybe because there is no KEY_SUBMISSION on foot?
Click me.
Re: Whats wrong with this? -
Skidmarks - 27.12.2011
Thats quite possibly right. LOL im such a stupid bas***d