SA-MP Forums Archive
26 errors - 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: 26 errors (/showthread.php?tid=486899)



26 errors - Lidor124 - 11.01.2014

Hi all..
I made a hotkey of /enter command by pressing F KEY_SECONDARY_ATTACK
my problem is that i want to make exactly for exit "F" but after i compile and enter my server the enter F works but F exit doesn't respond
There are both under public OnPlayerKeyStateChange
please help


Код:
// Enter "F"	
	
	if(newkeys & KEY_SECONDARY_ATTACK)
	{
             Bla bla bla
[/CODE]

Код:
// Exit "F"	
	
	if(newkeys & KEY_SECONDARY_ATTACK)
	{
             Bla bla bla
[/CODE]


Re: 26 errors - Mr.Faqahat - 11.01.2014

Quote:

if(IsPlayerInAnyVehicle(playerid))
{
Bla Bla lol
}

Try to Use this On Exit under "if(newkeys & KEY_SECONDARY_ATTACK)"


Re: 26 errors - amirab - 11.01.2014

that's cause of you didn't put one
PHP код:




Re: 26 errors - ExtremeLess - 11.01.2014

if you have 26 errors,you forgot a bracket.


Re: 26 errors - Lidor124 - 11.01.2014

I put wrong title sorry...
my problem is using /exit and /enter for same hotkey KEY_SECONDARY_ATTACK
/enter works but /exit doesn't