Converting job names from one include to another
#1

Hello. I have problem. I make GM where every system have own includes. I have /stats cmd in users.inc and i want show job names in stats but job names i have in job.inc and it gives error not undefine NamesJobs but its defined in jobs.inc and works there. When i change #include Users and #include Jobs order in main.pwn then gives error undefined pInfo from playerdata. Do i must copy-paste job names variable and every time i create new job add job name both to users.inc and jobs.inc or is there another way to read jobnames from job.inc with out make double variables? i hope u understand my bad english.
Added: 17.04.2015
This is in Jobs.inc
Код:
new NamesJobs[ MAX_JOBS ][ 30 ] = //Define jobs name
{
	{"Tццtu"},
	{"Pizzapoiss"},
	{"Taxi Driver"}
};
and this is stats in user.inc Thisis working in jobs.inc but not in users.inc
Код:
 NamesJobs[wJob[playerid]]
Getting this error: error 017: undefined symbol "NamesJobs".
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)