SA-MP Forums Archive
Use an include - 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: Use an include (/showthread.php?tid=323418)



Using include - falor - 05.03.2012

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


Re: Use an include - Phife - 05.03.2012

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


Re : Use an include - falor - 05.03.2012

Thank you for your replie

The whole file?


Re: Use an include - tyler12 - 05.03.2012

#include <name_here>


Re : Use an include - falor - 05.03.2012

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


Re: Use an include - tyler12 - 05.03.2012

post the errors a

make sure its in pawno>includes folder!


Re : Use an include - falor - 05.03.2012

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 ...


AW: Use an include - BigETI - 05.03.2012

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


Re : Use an include - falor - 05.03.2012

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?


Re: Use an include - MP2 - 06.03.2012

Remove the already existing sscanf() function.