Cuffs problem
#1

Hey guys,

Only recently started scripting again and need to refresh my memory. I'm having problems with the cuffs include (probably simple lol).

Код:
C:\Users\snadi&greg\Desktop\samp037_svr_R2-1-1_win32 (1)\pawno\include\cuffs.inc(728) : warning 235: public function lacks forward declaration (symbol "OnPlayerKeyStateChange")
C:\Users\snadi&greg\Desktop\samp037_svr_R2-1-1_win32 (1)\pawno\include\cuffs.inc(730) : error 017: undefined symbol "KEY_JUMP"
C:\Users\snadi&greg\Desktop\samp037_svr_R2-1-1_win32 (1)\pawno\include\cuffs.inc(732) : error 017: undefined symbol "ApplyAnimation"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
I can't figure out what's wrong. I'm pretty sure I need to define the function, but I can't remember how. And how do I define Key_Jump and ApplyAnimation? Thanks in advanced, Josh
Reply
#2

cuffs.inc is not compiled alone, it is not built for plug and play but for your script (although it works across scripts since it uses pvars). Include it and use the SetPlayerCuffed function in your gamemode when handcuffing/unhandcuffing.
Reply
#3

Thanks, but I'm a little confused.

Does the cuffs include script matter if it compiles with the above errors? Because when I try to compile my actual gamemode script it says
Код:
C:\Users\snadi&greg\Desktop\samp037_svr_R2-1-1_win32 (1)\gamemodes\AZRP.pwn(8) : fatal error 100: cannot read from file: "yom_buttons"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Is that because of the error in the include script?
Reply
#4

Quote:
Originally Posted by Josh_Main
Посмотреть сообщение
Thanks, but I'm a little confused.

Does the cuffs include script matter if it compiles with the above errors? Because when I try to compile my actual gamemode script it says
Код:
C:\Users\snadi&greg\Desktop\samp037_svr_R2-1-1_win32 (1)\gamemodes\AZRP.pwn(8) : fatal error 100: cannot read from file: "yom_buttons"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Is that because of the error in the include script?
It is completely unrelated. You are missing yom_buttons.inc, you can try googling it. It's used within NG:RP and similar scripts.
Reply
#5

Thanks.

Seem to be having problem after problem. Now when compiling yom_buttons include, I receive these errors.
Код:
C:\Users\snadi&greg\Desktop\samp037_svr_R2-1-1_win32 (1)\pawno\include\yom_buttons.inc(197) : error 070: rational number support was not enabled
C:\Users\snadi&greg\Desktop\samp037_svr_R2-1-1_win32 (1)\pawno\include\yom_buttons.inc(74) : error 070: rational number support was not enabled
C:\Users\snadi&greg\Desktop\samp037_svr_R2-1-1_win32 (1)\pawno\include\yom_buttons.inc(84) : error 070: rational number support was not enabled
C:\Users\snadi&greg\Desktop\samp037_svr_R2-1-1_win32 (1)\pawno\include\yom_buttons.inc(138) : error 070: rational number support was not enabled
C:\Users\snadi&greg\Desktop\samp037_svr_R2-1-1_win32 (1)\pawno\include\yom_buttons.inc(174) : error 070: rational number support was not enabled
C:\Users\snadi&greg\Desktop\samp037_svr_R2-1-1_win32 (1)\pawno\include\yom_buttons.inc(197) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Reply
#6

Are you seriously compiling the yom_buttons, separate, same as you did in the first post?


If you are, you seriously aren't refreshing, you need to relearn it...

Compile the gamemode, Includes aren't to be compiled. Include the includes in the gamemode/filterscript.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)