splited files
#1

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 ?
Reply
#2

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.
Reply
#3

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?
Reply
#4

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?
Reply
#5

Yes , they are spread as includes , and i'm targeting one of new values from another include , but undendified symbol error , its not readin
Reply
#6

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?
Reply
#7

Код:
// 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
Reply
#8

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 ?
Reply
#9

Nvm , it should be above. thanks for helping +REP
Reply
#10

Oh okay sorry was busy. Yeah i figured that you used before defining, good job on fixing it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)