Use an include
#1

Hey,

I don't understand how to use an include like : https://sampforum.blast.hk/showthread.php?tid=317252

Should i have to incorpore it to my gamemode?

Or use something from the include in my mode??

I'm lost

Thanks for your help
Reply
#2

Yes, you should include it into your main gamemode, remember to have the include in the right folder as well.
Reply
#3

Thank you for your replie

The whole file?
Reply
#4

#include <name_here>
Reply
#5

If I do just #include <S32_House> in my gamemode and try compiling i got errors
What should i do please?
Reply
#6

post the errors a

make sure its in pawno>includes folder!
Reply
#7

It is
Код:
S:\Serveur\GTA (SAMP)\Core\pawno\include\YSI\y_hooks.inc(884) : warning 219: local variable "row" shadows a variable at a preceding level
S:\Serveur\GTA (SAMP)\Core\pawno\include\YSI\y_commands.inc(202) : warning 201: redefinition of constant/macro (symbol "CMD:%0(%1)")
S:\Serveur\GTA (SAMP)\Core\pawno\include\YSI\y_commands.inc(203) : warning 201: redefinition of constant/macro (symbol "COMMAND")
S:\Serveur\GTA (SAMP)\Core\pawno\include\S32_House.inc(1617) : error 017: undefined symbol "GetWeapon"
S:\Serveur\GTA (SAMP)\Core\pawno\include\S32_House.inc(1620) : error 017: undefined symbol "GetWeapon"
S:\Serveur\GTA (SAMP)\Core\pawno\include\S32_House.inc(1623) : error 017: undefined symbol "GetWeapon"
S:\Serveur\GTA (SAMP)\Core\pawno\include\S32_House.inc(2146) : error 017: undefined symbol "GetWeapon"
S:\Serveur\GTA (SAMP)\Core\pawno\include\S32_House.inc(2149) : error 017: undefined symbol "GetWeapon"
S:\Serveur\GTA (SAMP)\Core\pawno\include\S32_House.inc(2152) : error 017: undefined symbol "GetWeapon"
S:\Serveur\GTA (SAMP)\Core\pawno\include\S32_House.inc(2171) : error 017: undefined symbol "GetWeapon"
S:\Serveur\GTA (SAMP)\Core\pawno\include\S32_House.inc(2174) : error 017: undefined symbol "GetWeapon"
S:\Serveur\GTA (SAMP)\Core\pawno\include\S32_House.inc(2177) : error 017: undefined symbol "GetWeapon"
S:\Serveur\GTA (SAMP)\Core\pawno\include\S32_House.inc(2797) : error 017: undefined symbol "GetWeapon"
S:\Serveur\GTA (SAMP)\Core\pawno\include\S32_House.inc(2800) : error 017: undefined symbol "GetWeapon"
S:\Serveur\GTA (SAMP)\Core\pawno\include\S32_House.inc(2825) : error 017: undefined symbol "GetWeapon"
S:\Serveur\GTA (SAMP)\Core\pawno\include\S32_House.inc(2828) : error 017: undefined symbol "GetWeapon"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3032) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3036) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3050) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3064) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3078) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3151) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3191) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3256) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3276) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3294) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3340) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3372) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3438) : warning 203: symbol is never used: "playerid"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3450) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3473) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3560) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3614) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3623) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3637) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3658) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3667) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3684) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3698) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3728) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3740) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3762) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3788) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3892) : warning 203: symbol is never used: "params"
S:\Serveur\GTA (SAMP)\Core\gamemodes\iRP8.pwn(3951) : warning 203: symbol is never used: "params"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Before adding the include, 0 warning, 0 error ...
Reply
#8

Don't include y_commands after zcmd! (or opposite)
Reply
#9

Thanks !!!!! You are the best!

Quote:

(SAMP)\Core\pawno\include\sscanf2.inc(30) : fatal error 111: user error: sscanf (possibly the PAWN version) already defined.

?? What's this?
Reply
#10

Remove the already existing sscanf() function.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)