16.04.2015, 16:25
(
Последний раз редактировалось maxmax1; 17.04.2015 в 15:02.
)
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
and this is stats in user.inc Thisis working in jobs.inc but not in users.inc
Getting this error: error 017: undefined symbol "NamesJobs".
Added: 17.04.2015
This is in Jobs.inc
Код:
new NamesJobs[ MAX_JOBS ][ 30 ] = //Define jobs name { {"Tццtu"}, {"Pizzapoiss"}, {"Taxi Driver"} };
Код:
NamesJobs[wJob[playerid]]