splited files - 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: splited files (
/showthread.php?tid=650186)
splitted files -
AstroPoid - 22.02.2018
Server is not reading/responding any new values/definitions from other files over the gamemode, i have to input something like a specific code or anything similar to that ?
Re: splited files -
RogueDrifter - 22.02.2018
Only bump after at least 24 hours of the post. Read the forum's rules.
And what you just said doesn't make any sense. Elaborate further.
Re: splited files -
AstroPoid - 22.02.2018
Ok , simply my gamemode is not reading the ( new ) values while they are intop , keep in mind gamemode is not in 1 file , but spreaded over much files , any ideas?
Re: splited files -
RogueDrifter - 22.02.2018
Quote:
Originally Posted by AstroPoid
Ok , simply my gamemode is not reading the ( new ) values while they are intop , keep in mind gamemode is not in 1 file , but spreaded over much files , any ideas?
|
spread in much files as in includes? are you using the 'new' values before or after the includes?
Re: splited files -
AstroPoid - 22.02.2018
Yes , they are spread as includes , and i'm targeting one of new values from another include , but undendified symbol error , its not readin
Re: splited files -
RogueDrifter - 22.02.2018
Quote:
Originally Posted by AstroPoid
Yes , they are spread as includes , and i'm targeting one of new values from another include , but undendified symbol error , its not readin
|
So the variable is defined in the include, and you're using it in the gamemode am i correct? are you sure you included the include before using the variable? can you show me the definition of that variable in the include and how you used it in the GM?
Re: splited files -
AstroPoid - 22.02.2018
Код:
// targeted value
#define GetPlayerRaceID(%0) (playerraceid[%0])
//located at
#include "MSNGM/defines.pwn"
//
#include "MSNGM/races.pwn" // file i'm currently working with
GetPlayerRaceID(playerid); // undendified symbol
Keep in mind that this variable already used many times before and worked pretty well
Re: splited files -
AstroPoid - 22.02.2018
A quick question , the included file which have the error (( I'm currently editing )) should be under the include which contains the variable i'm targeting or above ?
Re: splited files -
AstroPoid - 22.02.2018
Nvm , it should be above. thanks for helping +REP
Re: splited files -
RogueDrifter - 22.02.2018
Oh okay sorry was busy. Yeah i figured that you used before defining, good job on fixing it.