SA-MP Forums Archive
Scope for ha problems. - 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: Scope for ha problems. (/showthread.php?tid=347392)



Scope for ha problems. - Evation - 01.06.2012

okay i got a scope for my ha so it one shot kills at headshot if you got a scope.

the public its under.
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
this code crashes my pwn and doesn't compile.
Код:
{
	if(newkeys & KEY_FIRE && newkeys & KEY_HANDBRAKE)
	{
	    if(GetPlayerWeapon(playerid) == 34 && PlayerInfo[playerid][pScope] == 1 && PlayerInfo[playerid][pMember] == 8 && ScopeEnabled == 1)
 		{
     		new Float:blahx, Float:blahy, Float:blahz;
			HeadshotCheck(playerid, blahx, blahy, blahz);
		}
 	}
 	return 1;
}
HOW CAN I FIX?


Re: Scope for ha problems. - Scott - 01.06.2012

If you comment out/remove HeadshotCheck() does the compiler still crash?