Name check
#5

Код:
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);
            }
        }
converted to English

i want if playername == DyrikData[darboID][Director] 1:1

got where he's director

if in JOBID = 1

he's Police director
Reply


Messages In This Thread
Name check - by TheNerka - 30.09.2014, 07:36
Re: Name check - by Ox1gEN - 30.09.2014, 07:42
Re: Name check - by TheNerka - 30.09.2014, 07:46
Re: Name check - by Ox1gEN - 30.09.2014, 07:49
Re: Name check - by TheNerka - 30.09.2014, 07:56
Re: Name check - by Ox1gEN - 30.09.2014, 08:01
Re: Name check - by TheNerka - 30.09.2014, 08:05
Re: Name check - by Ox1gEN - 30.09.2014, 08:08
Re: Name check - by TheNerka - 30.09.2014, 08:14
Re: Name check - by Ox1gEN - 30.09.2014, 08:17

Forum Jump:


Users browsing this thread: 2 Guest(s)