Callbacks include giving me 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: Callbacks include giving me errors (
/showthread.php?tid=527657)
Callbacks include giving me errors -
maximthepain - 23.07.2014
I'm having a error please help !
pawn Код:
callbacks.inc(1) : error 010: invalid function or declaration
callbacks.inc Line 1:
pawn Код:
#if !defined POTENTIAL_CRASH_DAMAGE
Re: Callbacks include giving me errors -
GeekSiMo - 23.07.2014
#if !defined POTENTIAL_CRASH_DAMAGE
#define POTENTIAL_CRASH_DAMAGE
#endif
Re: Callbacks include giving me errors -
maximthepain - 23.07.2014
Quote:
Originally Posted by GeekSiMo
#if !defined POTENTIAL_CRASH_DAMAGE
#define POTENTIAL_CRASH_DAMAGE
#endif
|
The code is already that.
By the way i'm using this include in a gamemode not a filterscript.
C:\Users\Max\Desktop\FTPBackupNRP\pawno\include\ca llbacks.inc(1) : error 010: invalid function or declaration
C:\Users\Max\Desktop\FTPBackupNRP\pawno\include\ca llbacks.inc(3) : error 026: no matching "#if..."
7 First lines:
pawn Код:
#if !defined POTENTIAL_CRASH_DAMAGE
#define POTENTIAL_CRASH_DAMAGE 55.0
#endif
#if !defined POTENTIAL_SPEED_DROP
#define POTENTIAL_SPEED_DROP 5.0
#endif
Re: Callbacks include giving me errors -
ViniBorn - 23.07.2014
Maybe you can use only
pawn Код:
#define POTENTIAL_CRASH_DAMAGE 55.0
#define POTENTIAL_SPEED_DROP 5.0
Re: Callbacks include giving me errors -
maximthepain - 23.07.2014
Quote:
Originally Posted by ViniBorn
Maybe you can use only
pawn Код:
#define POTENTIAL_CRASH_DAMAGE 55.0 #define POTENTIAL_SPEED_DROP 5.0
|
I have already tried this method and yet this didn't work.