Вопросы

Tony Ingsize
Новичок

Начал редактировать, все стало коряво как на скриншоте. Буду очень благодарен за помощь:prostite:

 

Спойлер
Спойлер

:fingal:

{
    new msg[] = "[0] Гражданский\n[1] LSPD\n[2] FBI\n[3] ARMY SF\n[4] MEDIC\n[5] LCN\n[6] YAKUZA\n[7] MAYOR\n[9] SFN\n[10] SFPD\n[11] INSTRUCTOR\n[12] BALLAS\n[13] VAGOS\n[14] RUS MAFIA\n[15] GROVE\n[16] LSN\n[17] AZTEC\n[18] RIFA\n[19] LVA\n[20] LVN\n[21] LVPD\n[24] HELL'S ANGELS MC\n[26] WARLOCKS MC\n[29] PAGANS MC";
    ShowPlayerDialogEx(playerid,22813,DIALOG_STYLE_MSGBOX, "Ид фаркций",msg, "Закрыть", "");
}
stock kShowStats(playerid,targetid)
{
    new tempstring[100];
    new httpquery[2500];
    format(httpquery, sizeof(httpquery),"");
    new stringersqw[30],stringersqx[35],teampstringds[30],teampstringd[30],teampstring[70];
    format(stringersqw,sizeof(stringersqw),"Имя:\t\t\t\t%s\n\n",Name(targetid));
    strcat(httpquery,stringersqw);

    format(stringersqx,sizeof(stringersqx),"Уровень:\t\t\t%d\n",PTEMP[targetid][pLevel]);
    strcat(httpquery,stringersqx);
    new nxtlevlel = PTEMP[targetid][pLevel]+1;
    new expert = nxtlevlel*4;
    format(teampstringds,sizeof(teampstringds),"Exp:\t\t\t\t%d/%d\n",PTEMP[targetid][pExp],expert);
    strcat(httpquery,teampstringds);

    format(teampstringd,sizeof(teampstringd),"Деньги:\t\t\t%d",PTEMP[targetid][pCash]);
    strcat(httpquery,teampstringd);

    format(teampstring,sizeof(teampstring),"\nВарнов:\t\t\t%d",PTEMP[targetid][pWarns]);
    strcat(httpquery,teampstring);

    if(PTEMP[targetid][OffWarns] && PTEMP[targetid][pWarns])
    {
        new strisaq[35];
        format(strisaq,sizeof(strisaq),"\nВарн до: %s",date("%dd/%mm/%yyyy  %hh:%ii",PTEMP[targetid][OffWarns]));
        strcat(httpquery,strisaq);
    }

    new qdqwdsds[35],tempstringessrd[35],tempstringessr[35],tempstringesdr[35],tempstringesr[35];
    new tempstringe[35],tempstrings[35],tempstringq[35],tempstringqs[35],tempstringer[35];
    format(qdqwdsds,sizeof(qdqwdsds),"\nЗаконопослушность:\t\t%d\n",PTEMP[targetid][pZakonp]);
    strcat(httpquery,qdqwdsds);

    format(tempstringessr,sizeof(tempstringessr),"Преступлений:\t\t%d\n",PTEMP[targetid][pCrimes]);
    strcat(httpquery,tempstringessr);

    format(tempstringesdr,sizeof(tempstringesdr),"Смертей в розыске:\t\t%d\n",PTEMP[targetid][pWantedDeaths]);
    strcat(httpquery,tempstringesdr);

    format(tempstringesr,sizeof(tempstringesr),"Арестов:\t\t\t%d\n",PTEMP[targetid][pArrested]);
    strcat(httpquery,tempstringesr);

    format(tempstringer,sizeof(tempstringer),"Уровень розыска:\t\t%d\n",PTEMP[targetid][pWantedLevel]);
    strcat(httpquery,tempstringer);

    format(tempstringqs,sizeof(tempstringqs),"Дата регистрации:\t\t%s\n",PTEMP[targetid][pDataReg]);
    strcat(httpquery,tempstringqs);

    format(tempstringq,sizeof(tempstringq),"Зависимость:\t\t\t%d\n",PTEMP[targetid][pAddiction]);
    strcat(httpquery,tempstringq);

    format(tempstringe,sizeof(tempstringe),"Наркотики:\t\t\t%d\n",PTEMP[targetid][pDrugs]);
    strcat(httpquery,tempstringe);

    format(tempstrings,sizeof(tempstrings),"Материалы:\t\t\t%d\n",PTEMP[targetid][pMats]);
    strcat(httpquery,tempstrings);

    format(tempstringessrd,sizeof(tempstringessrd),"Рыбы поймано:\t\t\t%.2f кг\n",PTEMP[targetid][pFishes]);
    strcat(httpquery,tempstringessrd);

    new tempisoo[70];
    switch(PTEMP[targetid][pMember])
    {
    case 0: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tНет\n");
    case 1: strcat(httpquery,"Организиция:\t\t\tPolice LS\n");
    case 2: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tFBI\n");
    case 3: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tArmy SF\n");
    case 4: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tМедики SF\n");
    case 5: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tLa Cosa Nostra\n");
    case 6: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tYakuza\n");
    case 7: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tМэрия\n");
    case 8: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tCasino\n");
    case 9: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tSF News\n");
    case 10: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tPolice SF\n");
    case 11: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tИнструкторы\n");
    case 12: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tBallas Gang\n");
    case 13: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tVagos Gang\n");
    case 14: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tРусская Мафия\n");
    case 15: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tGrove Street\n");
    case 16: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tLS News\n");
    case 17: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tAztecas Gang\n");
    case 18: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tRifa Gang\n");
    case 19: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tArmy LV\n");
    case 20: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tLV News\n");
    case 21: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tPolice LV\n");
    case 24: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tHell's Angels MC\n");
    case 26: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tWarlocks MC\n");
    case 29: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tPagans MC\n");
    case 22: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tМедики LS\n");
    case 33: format(tempisoo,sizeof(tempisoo),"Организиция:\t\t\tМедики ЛВ\n");
    }
    strcat(httpquery,tempisoo);

    switch(PTEMP[targetid][pMember])
    {
    case 0: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\t-\n");
    case 1,10,21:
        {
            switch(PTEMP[targetid][pRank])
            {
            case 1: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tКадет\n");
            case 2: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tОфицер\n");
            case 3: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tМл. Сержант\n");
            case 4: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tСержант\n");
            case 5: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tПрапорщик\n");
            case 6: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tСт. Прапорщик\n");
            case 7: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tМл. Лейтенант\n");
            case 8: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tЛейтенант\n");
            case 9: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tСт. Лейтенант\n");
            case 10: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tКапитан\n");
            case 11: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tМайор\n");
            case 12: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tПодполковник\n");
            case 13: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tПолковник\n");
            case 14: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tШериф\n");

            }
        }
    case 19:
        {
            switch(PTEMP[targetid][pRank])
            {
            case 1: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tРядовой\n");
            case 2: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tЕфрейтор\n");
            case 3: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tМл. Сержант\n");
            case 4: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tСержант\n");
            case 5: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tСтаршина\n");
            case 6: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tПрапорщик\n");
            case 7: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tСт. Прапорщик\n");
            case 8: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tМл. Лейтенант\n");
            case 9: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tЛейтенант\n");
            case 10: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tСт. Лейтенант\n");
            case 11: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tКапитан\n");
            case 12: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tМайор\n");
            case 13: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tПодполковник\n");
            case 14: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tПолковник\n");
            case 15: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tГенерал\n");
            }
        }
    case 3:
        {
            switch(PTEMP[targetid][pRank])
            {
            case 1: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tЮнга\n");
            case 2: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tМатрос\n");
            case 3: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tСт. Матрос\n");
            case 4: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tСтаршина\n");
            case 5: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tМл.Мичман\n");
            case 6: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tМичман\n");
            case 7: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tCт.Мичман\n");
            case 8: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tМл.Лейтенант\n");
            case 9: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tЛейтенант\n");
            case 10: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tСт. Лейтенант\n");
            case 11: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tКапитан-Лейтенант\n");
            case 12: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tКапитан 1-го ранга\n");
            case 13: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tКонтр-Адмирал\n");
            case 14: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tВице-Адмирал\n");
            case 15: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tАдмирал\n");
            }
        }
    case 9,16,20:
        {
            switch(PTEMP[targetid][pRank])
            {
            case 1: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tСтажер\n");
            case 2: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tЗвукооператор\n");
            case 3: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tЗвукорежиссер\n");
            case 4: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tРепортер\n");
            case 5: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tВедущий\n");
            case 6: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tРедактор\n");
            case 7: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tГл.Редактор\n");
            case 8: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tТех.Директор\n");
            case 9: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tПрограмный Директор\n");
            case 10: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tГен.Директор\n");
            }
        }
    case 7:
        {
            switch(PTEMP[targetid][pRank])
            {
            case 1: format(tempstring, sizeof(tempstring), "Должность:\t\t\t\tСекретарь\n");
            case 2: format(tempstring, sizeof(tempstring), "Должность:\t\t\t\tАдвокат\n");
            case 3: format(tempstring, sizeof(tempstring), "Должность:\t\t\t\tОхранник\n");
            case 4: format(tempstring, sizeof(tempstring), "Должность:\t\t\t\tНач.Охранны\n");
            case 5: format(tempstring, sizeof(tempstring), "Должность:\t\t\t\tЗам.Мэра\n");
            case 6: format(tempstring, sizeof(tempstring), "Должность:\t\t\t\tМэр\n");
            }
        }
    case 11:
        {
            switch(PTEMP[targetid][pRank])
            {
            case 1: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tСтажер\n");
            case 2: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tКонсультант\n");
            case 3: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tЭкзаменатор\n");
            case 4: format(tempstring,sizeof(tempstring),"Должность:\t\tМл.Инструктор\n");
            case 5: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tИнструктор\n");
            case 6: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tКоординатор\n");
            case 7: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tМл.Менеджер\n");
            case 8: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tСт.Менеджер\n");
            case 9: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tДиректор\n");
            case 10: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tУправляющий\n");
            }
        }
    case 2:
        {
            switch(PTEMP[targetid][pRank])
            {
            case 1: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tСтажер\n");
            case 2: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tДежурный\n");
            case 3: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tМладший Агент\n");
            case 4: format(tempstring,sizeof(tempstring),"Должность:\t\tАгент отдела ГНК\n");
            case 5: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tАгент отдела CID\n");
            case 6: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tГлава отдела ГНК\n");
            case 7: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tГлава отдела CID\n");
            case 8: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tИнспектор FBI\n");
            case 9: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tЗам. Директора FBI\n");
            case 10: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tДиректор FBI\n");
            }
        }
    case 15:
        {
            switch(PTEMP[targetid][pRank])
            {
            case 1: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tПлейя\n");
            case 2: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tХастла\n");
            case 3: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tКилла\n");
            case 4: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tЮонг Г\n");
            case 5: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tГангста\n");
            case 6: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tО.Г\n");
            case 7: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tМобста\n");
            case 8: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tДе Кинг\n");
            case 9: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tЛегенд\n");
            case 10: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tМэд Дог\n");
            }
        }
    case 12:
        {
            switch(PTEMP[targetid][pRank])
            {
            case 1: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tБлайд\n");
            case 2: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tБастер\n");
            case 3: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tКрекер\n");
            case 4: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tГун бро\n");
            case 5: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tАп бро\n");
            case 6: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tГангстер\n");
            case 7: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tФедерал блок\n");
            case 8: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tФолкс\n");
            case 9: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tРайч нигга\n");
            case 10: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tБиг Вилли\n");
            }
        }
    case 17:
        {
            switch(PTEMP[targetid][pRank])
            {
            case 1: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tГринго\n");
            case 2: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tНовато\n");
            case 3: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tЕстимадо\n");
            case 4: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tАмиго\n");
            case 5: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tЕрмано\n");
            case 6: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tСолдато\n");
            case 7: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tБандито\n");
            case 8: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tАджунто\n");
            case 9: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tЕмпинадо\n");
            case 10: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tПадре\n");
            }
        }
    case 13:
        {
            switch(PTEMP[targetid][pRank])
            {
            case 1: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tНовато\n");
            case 2: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tОрдинарио\n");
            case 3: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tЛокал\n");
            case 4: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tВерификадо\n");
            case 5: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tБандито\n");
            case 6: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tV.E.G.\n");
            case 7: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tАссесино\n");
            case 8: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tЛидер V.E.G.\n");
            case 9: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tПадрино\n");
            case 10: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tПадре\n");
            }
        }
    case 18:
        {
            switch(PTEMP[targetid][pRank])
            {
            case 1: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tПерро\n");
            case 2: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tТирадор\n");
            case 3: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tГеттор\n");
            case 4: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tЛас Геррас\n");
            case 5: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tМирандо\n");
            case 6: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tСабио\n");
            case 7: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tИнвасор\n");
            case 8: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tТесорреро\n");
            case 9: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tНестро\n");
            case 10: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tПадре\n");
            }
        }
    case 5:
        {
            switch(PTEMP[targetid][pRank])
            {
            case 1: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tНовичок\n");
            case 2: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tАссосиато\n");
            case 3: format(tempstring,sizeof(tempstring),"Должность:\t\tСомбаттенте\n");
            case 4: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tСолдато\n");
            case 5: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tБоец\n");
            case 6: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tСото-капо\n");
            case 7: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tКапо\n");
            case 8: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tМладший Босс\n");
            case 9: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tКоньсельери\n");
            case 10: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tДон\n");
            }
        }
    case 4,22,33:
        {
            switch(PTEMP[targetid][pRank])
            {
            case 1: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tИнтерн\n");
            case 2: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tСанитар\n");
            case 3:
                {
                    if(PTEMP[targetid][pSex] == 1) format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tМед.Брат\n");
                    else if(PTEMP[targetid][pSex] == 2) format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tМед.Сестра\n");
                }
            case 4: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tСпасатель\n");
            case 5: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tНарколог\n");
            case 6: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tДоктор\n");
            case 7: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tПсихолог\n");
            case 8: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tХирург\n");
            case 9: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tЗам Глав.Врача\n");
            case 10: format(tempstring,sizeof(tempstring),"Должность:\t\t\t\tГлав.Врач\n");
            }
        }
    }
    strcat(httpquery,tempstring);

    switch(PTEMP[targetid][pJob])
    {
    case 0: format(tempstring,sizeof(tempstring),"Работа:\t\t\tБезработный\n");
    case 1: format(tempstring,sizeof(tempstring),"Работа:\t\t\tВодитель автобуса\n");
    case 2: format(tempstring,sizeof(tempstring),"Работа:\t\t\tМеханик\n");
    case 3: format(tempstring,sizeof(tempstring),"Работа:\t\t\tПродавец хотдогов\n");
    case 4: format(tempstring,sizeof(tempstring),"Работа:\t\t\tТаксист\n");
    case 5: format(tempstring,sizeof(tempstring),"Работа:\t\t\tРазвозчик продуктов\n");
    case 6: format(tempstring,sizeof(tempstring),"Работа:\t\t\tТренер\n");
    case 8: format(tempstring,sizeof(tempstring),"Работа:\t\t\tИнкассатор\n");
    case 9: format(tempstring,sizeof(tempstring),"Работа:\t\t\tПрораб\n");
    case 99: format(tempstring,sizeof(tempstring),"Работа:\t\t\tДальнобойщик\n");
    }
    strcat(httpquery,tempstring);

    switch(PTEMP[targetid][pDonateRank])
    {
    case 0:
        {
            switch(PTEMP[targetid][pLevel])
            {
            case 1: format(tempstring,sizeof(tempstring),"Статус:\t\t\t\tНовичок\n");
            case 2,3: format(tempstring,sizeof(tempstring),"Статус:\t\t\t\tОсвоившийся\n");
            case 4,5: format(tempstring,sizeof(tempstring),"Статус:\t\t\t\tОсвоившийся\n");
            case 10: format(tempstring,sizeof(tempstring),"Статус:\t\t\t\tПостоянный игрок\n");
            case 6,7,8,9: format(tempstring,sizeof(tempstring),"Статус:\t\t\t\tОсвоившийся\n");
            default: format(tempstring,sizeof(tempstring),"Статус:\t\t\t\tДед\n");
            }
        }
    case 1: format(tempstring,sizeof(tempstring),"Статус:\t\t\t\tBRONZE VIP\n");
    case 2: format(tempstring,sizeof(tempstring),"Статус:\t\t\t\tSILVER VIP\n");
    case 3: format(tempstring,sizeof(tempstring),"Статус:\t\t\t\tGOLD VIP\n");
    }
    strcat(httpquery,tempstring);

    format(tempstring,sizeof(tempstring),"Жена/Муж:\t\t\t%s\n",PTEMP[targetid][pMarriedTo]);
    strcat(httpquery,tempstring);

    if(PTEMP[targetid][pSex]==1)format(tempstring,sizeof(tempstring),"Пол:\t\t\t\tМужчина\n");
    else format(tempstring,sizeof(tempstring),"Пол:\t\t\t\tЖенщина\n");
    strcat(httpquery,tempstring);


    if(PTEMP[playerid][pAdmin] >= 2)
    {
        format(tempstring,sizeof(tempstring),"\n\nБанк:\t\t\t\t%d\n",PTEMP[targetid][pBank]);
        strcat(httpquery,tempstring);
        format(tempstring,sizeof(tempstring),"Дом:\t\t\t\t%d\n",PTEMP[targetid][pPHouseKey]);
        strcat(httpquery,tempstring);
        format(tempstring,sizeof(tempstring),"Бизнес:\t\t\t%d\n",PTEMP[targetid][pPBizzKey]);
        strcat(httpquery,tempstring);
        format(tempstring,sizeof(tempstring),"Квартира:\t\t\t%d\n",PTEMP[targetid][pKvartiraKey]);
        strcat(httpquery,tempstring);
        format(tempstring,sizeof(tempstring),"Скин:\t\t\t\t%d\n",PTEMP[targetid][pChar]);
        strcat(httpquery,tempstring);
        format(tempstring,sizeof(tempstring),"СкинФр:\t\t\t%d\n",PTEMP[targetid][pModel]);
        strcat(httpquery,tempstring);

    }
    ShowPlayerDialogEx(playerid,9999,0,"Статистика персонажа",httpquery,"Готово","");
    return 1;
}
stock GetFracName(i)
{
    new ttext[32];
    switch(i)
    {
    case 1: ttext = "Police LS";
    case 2: ttext = "FBI";
    case 3: ttext = "Army SF";
    case 4: ttext = "Медики";
    case 5: ttext = "La Cosa Nostra";
    case 6: ttext = "Yakuza";
    case 7: ttext = "Мэрия";
    case 8: ttext = "Casino";
    case 9: ttext = "News SF";
    case 10: ttext = "Police SF";
    case 11: ttext = "Автошкола";
    case 12: ttext = "Ballas Gang";
    case 13: ttext = "Vagos Gang";
    case 14: ttext = "Русская Мафия";
    case 15: ttext = "Grove Street";
    case 16: ttext = "News LS";
    case 17: ttext = "Aztecas Gang";
    case 18: ttext = "Rifa Gang";
    case 19: ttext = "Army LV";
    case 20: ttext = "News LV";
    case 21: ttext = "Police LV";
    case 24: ttext = "Hell's Angels MC";
    case 26: ttext = "Warlocks MC";
    case 29: ttext = "Pagans MC";
    default: ttext = "Нет";
    }
    return ttext;
}
stock ShowStats(playerid,targetid)
{
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
    {
        new atext[32];
        new jtext[20];
        new drank[20];
        switch(PTEMP[targetid][pSex])
        {
        case 1: atext = "Мужчина";
        default: atext = "Женщина";
        }
        
        switch(PTEMP[targetid][pJob])
        {
        case 1: jtext = "Водитель автобуса";
        case 2: jtext = "Механик";
        case 3: jtext = "Продавец хотдогов";
        case 4: jtext = "Таксист";
        case 5: jtext = "Развозчик продуктов";
        case 6: jtext = "Тренер";
        case 8: jtext = "Инкассатор";
        case 9: jtext = "Прораб";
        case 99: jtext = "Дальнобойщик";
        default: jtext = "Нет";
        }
        switch(PTEMP[targetid][pDonateRank])
        {
        case 1: drank = "BRONZE";
        case 2: drank = "SILVER";
        case 3: drank = "GOLD";
        default: drank = "Нет";
        }
        new marry[32];
        if(!strcmp(PTEMP[targetid][pMarriedTo], "NULL", true))
        {
            marry = "-";
        }
        else format(marry, 32, "%s", PTEMP[targetid][pMarriedTo]);
        new name[MAX_PLAYER_NAME];
        new wdeaths = PTEMP[targetid][pWantedDeaths];
        new level = PTEMP[targetid][pLevel];
        new exp = PTEMP[targetid][pExp];
        new nxtlevel = PTEMP[targetid][pLevel]+1;
        new expamount = nxtlevel*levelexp;
        new cash = PTEMP[targetid][pCash];
        new pnumber = PTEMP[targetid][pPnumber];
        new warns = PTEMP[targetid][pWarns];
        new zakon = PTEMP[targetid][pZakonp];
        new addiction = PTEMP[targetid][pAddiction];
        new crimes = PTEMP[targetid][pCrimes];
        new arrests = PTEMP[targetid][pArrested];
        GetPlayerName(targetid, name, sizeof(name));
        new coordsstring[1200];
      

 

sa-mp-016.png

Отредактировано пользователем Tony Ingsize

Поделиться сообщением


Ссылка на сообщение

3 ответа на этот вопрос

  • 0
Maks_Fabions
Свой человек

@Tony Ingsize , проблемы текстом в смысле, что он кривой в статистике? Выравнивай тогда \t (отступление, грубо говоря, нажал TAB в pawno) \n (перейдёт на следующую строчку)

Поделиться сообщением


Ссылка на сообщение
  • 0
Tony Ingsize
Новичок

@Maks_Fabions не, я делаю типо на ранг pRank но не работает и ставятся другие значения типо pDrugs а в игре что то другое стоит на этом месте не наркотики статистика а другая 

И не могу поправить это:prostite:

Поделиться сообщением


Ссылка на сообщение
  • 0
Maks_Fabions
Свой человек

@Tony Ingsize вы что-то свое добавили? Если да, то можете показать код до того, как вы его изменили? (между глазом и двумя запятыми должна быть специальная форма для записи кода на форум, воспользуйтесь в следующий раз ею, для оформления сообщения или темы) 

Поделиться сообщением


Ссылка на сообщение
Гость
Эта тема закрыта для публикации ответов.
  • Последние посетители   0 пользователей онлайн

    Ни одного зарегистрированного пользователя не просматривает данную страницу

  • Похожий контент

    • patrickk
      От patrickk
      Всем привет, решил написать dm сервер и довольно хорошим получился, даже на голову выше Goat dm. Оставил не решенную проблему тем что  у меня есть 4 локации с rp run и cj run ну а как добавить cj бег на те локации не знаю и как эта система работает. Надеюсь мне помогут знающие люди
    • Samolet
      От Samolet
      Здраствуйте, cоздаю копию Arizona на ОМП, опен мультиплеер, загрузил и подключил бд, но сервер не хочет вот лог :[2026-10-20T21:03:32+0300] [Info] Log file reloaded. Starting open.mp server (1.5.8.3079) from commit c6759bd8d265171ae3d86598895a23d5a8d92a3b Loading component $CAPI.so Successfully loaded component C-API (1.5.8.3079) with UID 10467dd8d4c56fc6 Loading component LegacyConfig.so Successfully loaded component LegacyConfig (1.5.8.3079) with UID 24ef6216838f9ffc Loading component NPCs.so Successfully loaded component NPCs (1.5.8.3079) with UID 3d0e59e87f4e90bc Loading component Recordings.so Successfully loaded component Recordings (1.5.8.3079) with UID 871144d399f5f613 Loading component Checkpoints.so Successfully loaded component Checkpoints (1.5.8.3079) with UID 44a937350d611dde Loading component TextDraws.so Successfully loaded component TextDraws (1.5.8.3079) with UID 9b5dc2b1d15c992a Loading component Pawn.so Successfully loaded component Pawn (1.5.8.3079) with UID 78906cd9f19c36a6 Loading component GangZones.so Successfully loaded component GangZones (1.5.8.3079) with UID b3351d11ee8d8056 Loading component Actors.so Successfully loaded component Actors (1.5.8.3079) with UID c81ca021eae2ad5c Loading component Pickups.so Successfully loaded component Pickups (1.5.8.3079) with UID cf304faa363dd971 Loading component Dialogs.so Successfully loaded component Dialogs (1.5.8.3079) with UID 44a111350d611dde Loading component Objects.so Successfully loaded component Objects (1.5.8.3079) with UID 59f8415f72da6160 Loading component Console.so Successfully loaded component Console (1.5.8.3079) with UID bfa24e49d0c95ee4 Loading component TextLabels.so Successfully loaded component TextLabels (1.5.8.3079) with UID a0c57ea80a009742 Loading component Variables.so Successfully loaded component Variables (1.5.8.3079) with UID 75e121848bc01fa2 Loading component Databases.so Successfully loaded component Databases (1.5.8.3079) with UID 80092e7eb5821a96 Loading component LegacyNetwork.so Successfully loaded component RakNetLegacyNetwork (1.5.8.3079) with UID ea9799fd79cf8442 Loading component CustomModels.so Successfully loaded component CustomModels (1.5.8.3079) with UID 15e3cb1e7c77ffff Loading component Menus.so Successfully loaded component Menus (1.5.8.3079) with UID 621e219eb97ee0b2 Loading component Vehicles.so Successfully loaded component Vehicles (1.5.8.3079) with UID 3f1f62ee9e22ab19 Loading component Classes.so Successfully loaded component Classes (1.5.8.3079) with UID 8cfb3183976da208 Loading component Timers.so Successfully loaded component Timers (1.5.8.3079) with UID 2ad8124c5ea257a3 Loaded 22 component(s) from /home/gs113492/components Executing Server Config... [2026-10-20T21:03:33+0300] [Info] Loading plugin: crashdetect.so [2026-10-20T21:03:33+0300] [Info] CrashDetect plugin 4.19 [2026-10-20T21:03:33+0300] [Info] Loading plugin: mapandreas.so [2026-10-20T21:03:33+0300] [Info] Loading plugin: streamer.so [2026-10-20T21:03:33+0300] [Info] *** Streamer Plugin v2.9.4 by Incognito loaded *** [2026-10-20T21:03:33+0300] [Info] Loading plugin: sscanf.so [2026-10-20T21:03:33+0300] [Info] [2026-10-20T21:03:33+0300] [Info] =============================== [2026-10-20T21:03:33+0300] [Info] sscanf plugin loaded. [2026-10-20T21:03:33+0300] [Info] Version: 2.8.3 [2026-10-20T21:03:33+0300] [Info] (c) 2018 Alex "Y_Less" Cole [2026-10-20T21:03:33+0300] [Info] =============================== [2026-10-20T21:03:33+0300] [Info] Loading plugin: TOTP.so [2026-10-20T21:03:33+0300] [Info] TOTP plugin v1.0.1 by Games loaded. [2026-10-20T21:03:33+0300] [Info] Loading plugin: mysql_static.so [2026-10-20T21:03:33+0300] [Info] >> plugin.mysql: R39-6 successfully loaded. [2026-10-20T21:03:33+0300] [Info] Loading plugin: libpawn_json.so [2026-10-20T21:03:34+0300] [Error] Function not registered: YSF_SetTickRate [2026-10-20T21:03:34+0300] [Error] Function not registered: PC_Init [2026-10-20T21:03:34+0300] [Info] [debug] Run time error 19: "File or function is not found" [2026-10-20T21:03:34+0300] [Info] [debug] PC_Init [2026-10-20T21:03:34+0300] [Info] [debug] YSF_SetTickRate [2026-10-20T21:03:34+0300] [Error] File or function is not found [2026-10-20T21:03:34+0300] [Error] Function not registered: PC_RegAlias [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_GetWriteOffset [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_Reset [2026-10-20T21:03:34+0300] [Error] Function not registered: PR_RegHandler [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_Delete [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_New [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_ResetReadPointer [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_SetWriteOffset [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_IgnoreBits [2026-10-20T21:03:34+0300] [Error] Function not registered: PR_Init [2026-10-20T21:03:34+0300] [Error] Function not registered: PR_SendRPC [2026-10-20T21:03:34+0300] [Error] Function not registered: PR_SendPacket [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_WriteValue [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_GetNumberOfBytesUsed [2026-10-20T21:03:34+0300] [Error] Function not registered: BS_ReadValue [2026-10-20T21:03:34+0300] [Error] Function not registered: PC_Init [2026-10-20T21:03:34+0300] [Info] [debug] Run time error 19: "File or function is not found" [2026-10-20T21:03:34+0300] [Info] [debug] PC_Init [2026-10-20T21:03:34+0300] [Info] [debug] BS_ReadValue [2026-10-20T21:03:34+0300] [Info] [debug] BS_GetNumberOfBytesUsed [2026-10-20T21:03:34+0300] [Info] [debug] BS_WriteValue [2026-10-20T21:03:34+0300] [Info] [debug] PR_SendPacket [2026-10-20T21:03:34+0300] [Info] [debug] PR_SendRPC [2026-10-20T21:03:34+0300] [Info] [debug] PR_Init [2026-10-20T21:03:34+0300] [Info] [debug] BS_IgnoreBits [2026-10-20T21:03:34+0300] [Info] [debug] BS_SetWriteOffset [2026-10-20T21:03:34+0300] [Info] [debug] BS_ResetReadPointer [2026-10-20T21:03:34+0300] [Info] [debug] BS_New [2026-10-20T21:03:34+0300] [Info] [debug] BS_Delete [2026-10-20T21:03:34+0300] [Info] [debug] PR_RegHandler [2026-10-20T21:03:34+0300] [Info] [debug] BS_Reset [2026-10-20T21:03:34+0300] [Info] [debug] BS_GetWriteOffset [2026-10-20T21:03:34+0300] [Info] [debug] PC_RegAlias [2026-10-20T21:03:34+0300] [Error] File or function is not found [2026-10-20T21:03:34+0300] [Info] [debug] Run time error 19: "File or function is not found" [2026-10-20T21:03:34+0300] [Info] [debug] PC_Init [2026-10-20T21:03:34+0300] [Info] [debug] YSF_SetTickRate [2026-10-20T21:03:34+0300] [Error] File or function is not found [2026-10-20T21:03:34+0300] [Info] [debug] Run time error 19: "File or function is not found" [2026-10-20T21:03:34+0300] [Info] [debug] PC_Init [2026-10-20T21:03:34+0300] [Info] [debug] BS_ReadValue [2026-10-20T21:03:34+0300] [Info] [debug] BS_GetNumberOfBytesUsed [2026-10-20T21:03:34+0300] [Info] [debug] BS_WriteValue [2026-10-20T21:03:34+0300] [Info] [debug] PR_SendPacket [2026-10-20T21:03:34+0300] [Info] [debug] PR_SendRPC [2026-10-20T21:03:34+0300] [Info] [debug] PR_Init [2026-10-20T21:03:34+0300] [Info] [debug] BS_IgnoreBits [2026-10-20T21:03:34+0300] [Info] [debug] BS_SetWriteOffset [2026-10-20T21:03:34+0300] [Info] [debug] BS_ResetReadPointer [2026-10-20T21:03:34+0300] [Info] [debug] BS_New [2026-10-20T21:03:34+0300] [Info] [debug] BS_Delete [2026-10-20T21:03:34+0300] [Info] [debug] PR_RegHandler [2026-10-20T21:03:34+0300] [Info] [debug] BS_Reset [2026-10-20T21:03:34+0300] [Info] [debug] BS_GetWriteOffset [2026-10-20T21:03:34+0300] [Info] [debug] PC_RegAlias [2026-10-20T21:03:34+0300] [Info] Legacy Network started on ***.**.**.***:2717. Помогите пожалуйста