Jump to content
  • 0

joburi 3dtext


caltabos

Question

deci am modificat in gm in loc de "{ffffff}ID: {FF0000}%d\n{ffffff}Job: {FF0000}%s{FFFFFF}\nFoloseste /getjob pentru a lua acest job."   CU    "{ffffff}ID: {FF0000}%d\n{ffffff}Job: {FF0000}%s{FFFFFF}\nPress {FF0000}Y{FFFFFF} to get the job\nPress {FF0000}N{FFFFFF} to quit job."

Intru pe server si nu imi arata dau /editjob editez numele si imi arata, dar dupa restart arata lafel ca inainte. ce pot sa fac?

sa-mp-035.png

sa-mp-036.png

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

            if(PlayerInfo[playerid][pAdmin] < 6) return 1;
            switch(EditJob[playerid]) {
                case 0: {
                    format(JobInfo[job][jName], 64, inputtext);
                    format(string, sizeof(string), "Ai modificat 'Job Name' la jobul cu ID-ul %d, in: %s.", job, inputtext);
                    SendClientMessage(playerid, COLOR_WHITE, string);
                    DestroyDynamic3DTextLabel(JobInfo[job][jLabel]);
                    DestroyDynamicPickup(JobInfo[job][jPickup]);
                    format(string, sizeof(string), "{ffffff}ID: {FF0000}%d\n{ffffff}Job: {FF0000}%s{FFFFFF}\nPress {FF0000}Y{FFFFFF} to get the job\nPress {FF0000}N{FFFFFF} to quit job.", job, JobInfo[job][jName]);    
                    JobInfo[job][jLabel] = CreateDynamic3DTextLabel(string, 0xFFFFFFFF, JobInfo[job][jPosX], JobInfo[job][jPosY], JobInfo[job][jPosZ], 25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, 0, -1, -1, 100.0);
                    JobInfo[job][jPickup] = CreateDynamicPickup(1239, 23, JobInfo[job][jPosX], JobInfo[job][jPosY], JobInfo[job][jPosZ], 0, -1, -1, 100.0);
                    mysql_format(SQL, query, sizeof(query), "UPDATE `jobs` SET `Name`='%s' WHERE `ID`='%d'", inputtext, job);
                    mysql_tquery(SQL, query, "", "");
                }
                case 1: {
                    JobInfo[job][jLevel] = amount;
                    DestroyDynamic3DTextLabel(JobInfo[job][jLabel]);
                    DestroyDynamicPickup(JobInfo[job][jPickup]);
                    format(string, sizeof(string), "{ffffff}ID: {FF0000}%d\n{ffffff}Job: {FF0000}%s{FFFFFF}\nPress {FF0000}Y{FFFFFF} to get the job\nPress {FF0000}N{FFFFFF} to quit job.", job, JobInfo[job][jName]);    
                    JobInfo[job][jLabel] = CreateDynamic3DTextLabel(string, 0xFFFFFFFF, JobInfo[job][jPosX], JobInfo[job][jPosY], JobInfo[job][jPosZ], 25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, 0, -1, -1, 100.0);
                    JobInfo[job][jPickup] = CreateDynamicPickup(1239, 23, JobInfo[job][jPosX], JobInfo[job][jPosY], JobInfo[job][jPosZ], 0, -1, -1, 100.0);
                    format(string, sizeof(string), "Ai modificat 'Level' la jobul cu ID-ul %d, in: %d.", job, amount);
                    SendClientMessage(playerid, COLOR_WHITE, string);
                    mysql_format(SQL, query, sizeof(query), "UPDATE `jobs` SET `NeedLevel`='%d' WHERE `ID`='%d'", amount, job);
                    mysql_tquery(SQL, query, "", "");
                }

 

aici se salveaza cica si in baza..

Link to comment
Share on other sites

  • 0

Nu vad nimic legat de salvarea textului in codul dat de tine. Iar din ce vad codul oferit arata ca prima poza(alb si rosu)

Dar nu sunt expert in a stii ce sisteme ciudate contin gm de rpg. Probabil cand incarci joburile din baza de date(cand porneste serverul) mai ai un alt text pe care trebuie sa il editezi astfel incat sa arate cum vrei. Editejob e doar o parte, cel mai mult nesemnificativa avand in vedere ca trebuie sa folosesti o comanda ca textul sa arate intr-un anumit fel

Link to comment
Share on other sites

  • 0
Acum 22 minute, Banditul a spus:

Nu vad nimic legat de salvarea textului in codul dat de tine. Iar din ce vad codul oferit arata ca prima poza(alb si rosu)

Dar nu sunt expert in a stii ce sisteme ciudate contin gm de rpg. Probabil cand incarci joburile din baza de date(cand porneste serverul) mai ai un alt text pe care trebuie sa il editezi astfel incat sa arate cum vrei. Editejob e doar o parte, cel mai mult nesemnificativa avand in vedere ca trebuie sa folosesti o comanda ca textul sa arate intr-un anumit fel

clar, l-am rezolvat, eu aseara cand cautam in GM "/getjob" cred ca am lasat un spatiu sau ceva ca defapt erau mai multe de editat.. mersi oricum

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.