newkeys problem - 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: newkeys problem (
/showthread.php?tid=525209)
newkeys problem -
prooftzm - 10.07.2014
hi there. i have a stupid problem X( i make a anti c-bug system but i get this error X(X(X
C:\Users\Cristi\Desktop\server\gamemodes\WAR.pwn(5 37) : error 017: undefined symbol "newkeys"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Line 537: if((IsACBUGWeapon(playerid) && RELEASED(KEY_FIRE)) && NEWKEYS != KEY_FIRE && NEWKEYS & KEY_CROUCH)
wtf is wrong
??
Re: newkeys problem -
prooftzm - 10.07.2014
all code:
pawn Код:
stock IsACBUGWeapon(playerid)
{
if (IsPlayerConnected(playerid))
{
new wID = GetPlayerWeapon ( playerid ) ;
if (wID == 24 || wID == 25 || wID == 27 || wID == 34 ) return 1 ;
}
return 0 ;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if((IsACBUGWeapon(playerid) && RELEASED(KEY_FIRE)) && NEWKEYS != KEY_FIRE && NEWKEYS & KEY_CROUCH)
{
SetPlayerHealth(playerid, 50);
SendClientMessage(playerid,COLOR_WHITE,"STOP C-BUG. You risk ban for 3 days.");
}
return 1;
}
Re: newkeys problem -
prooftzm - 10.07.2014
help pls.......
Re: newkeys problem -
prooftzm - 10.07.2014
anyone helps meee?
pls
Re: newkeys problem -
prooftzm - 10.07.2014
i fix that.