30.09.2014, 07:56
Код:
case THREAD_LOAD_DARBODYRIKAI: { new totaljobsdirector = 0; if(szRows) { new temp[230]; for(new i = 0; i < szRows; i++) { new JobID; cache_get_field_content(i, "JobID", temp); darboID = strval(temp); cache_get_field_content(i, "Director", temp); format(DyrikData[JobID][Director], 128, "%s", temp); cache_get_field_content(i, "Alternate", temp); format(DyrikData[JobID][Alternate], 128, "%s", temp); cache_get_field_content(i, "DirectorWarnings", temp); DyrikData[JobID][DirectorWarnings] = strval(temp); cache_get_field_content(i, "AlternateWarnings", temp); DyrikData[JobID][AlternateWarnings] = strval(temp); cache_get_field_content(i, "ThisJobHaveDirector", temp); DyrikData[JobID][ThisJobHaveDirector] = strval(temp); cache_get_field_content(i, "ThisJobHaveAlternate", temp); DyrikData[JobID][ThisJobHaveAlternate] = strval(temp); totaljobsdirector ++; } printf(" "SERVERNAME" - loaded %i job directors", totaljobsdirector); } }
i want if playername == DyrikData[darboID][Director] 1:1
got where he's director
if in JOBID = 1
he's Police director