XFLaviusX Posted January 10, 2021 Report Share Posted January 10, 2021 Deci eu stiu ca atunci cand treci o factiune sau un job in baza de date se adauga automat in lista de /factions sau /jobs... dar eu cand trec in baza o factiune/job nou(a) nu se implementeaza pe joc, de ce ? Multumesc pentru atentia acordata. Quote Link to comment Share on other sites More sharing options...
1 Kira. Posted January 10, 2021 Report Share Posted January 10, 2021 3 minutes ago, XFLaviusX said: Pai in baza sunt 13 si eu vreau sa o adaug pe a 14- Mai ai ceva legat de factiuni , in afara de asta , ceva max faction , sau ceva cu namefaction , factionname,factionlist? Quote Link to comment Share on other sites More sharing options...
0 Kira. Posted January 10, 2021 Report Share Posted January 10, 2021 Verifica comanda /jobs sau /factions .In orice caz poti sa o trimiti si aici pt ajutor Quote Link to comment Share on other sites More sharing options...
0 XFLaviusX Posted January 10, 2021 Author Report Share Posted January 10, 2021 Acum 45 minute, Kira. a spus: Verifica comanda /jobs sau /factions .In orice caz poti sa o trimiti si aici pt ajutor YCMD:factions(playerid, params[], help) { new szDialog[210], szDialog2[1700]; strcat(szDialog2, "Numele factiunii\tMembrii/Locuri\tAplicatii\n"); for(new i = 1; i < 14; i++) { format(szDialog, sizeof(szDialog), "%d. {%s}%s{FFFFFF}\t%s/10\t%s\n", i, ColorFaction[i], FactionName(i), GetFactionMembers(i), GetFactionStatus(i)); strcat(szDialog2, szDialog); } ShowPlayerDialogEx(playerid, DIALOG_FACTIONS, DIALOG_STYLE_TABLIST_HEADERS, "Factiuni:", szDialog2, "Ok", "Close"); return true; } YCMD:jobs(playerid, params[], help) { if(JobWorking[playerid] == 1) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu poti folosi aceasta coamnda cand muncesti."); new szDialog2[1024], szTitle[50], xx, Owner[30]; strcat(szDialog2, "Job name\tLevel\tOwner\tDistance\n"); for(new j = 0; j < MAX_JOBS; j++) { if(strlen(JobInfo[j][jName]) > 1) { if(strcmp(JobInfo[j][jOwner], "None", true) == 0) { Owner = "{BC1D1D}-{FFFFFF}"; } else format(Owner, sizeof(Owner), "%s", JobInfo[j][jOwner]); gString[0] = EOS; format(gString, sizeof(gString), "%s\t%d\t%s\t%0.2fm\n", JobInfo[j][jName],JobInfo[j][jLevel], Owner, GetPlayerDistanceFromPoint(playerid, JobInfo[j][jPosX],JobInfo[j][jPosY],JobInfo[j][jPosZ])); strcat(szDialog2, gString); xx++; } } format(szTitle, sizeof(szTitle), "Jobs: %d", xx); ShowPlayerDialog(playerid, DIALOG_JOBS, DIALOG_STYLE_TABLIST_HEADERS, szTitle, szDialog2, "Ok", "Cancel"); return true; } function PlayersHaveJob(jobid) { new x; foreach(Player, i) { if(IsPlayerConnected(i) && IsPlayerLogged[i] == 1) { if(PlayerInfo[i][pJob] == jobid) x++; } } return x; } Uite bro, poate vezi ceva mai ne la locul lui.. Quote Link to comment Share on other sites More sharing options...
0 Kira. Posted January 10, 2021 Report Share Posted January 10, 2021 YCMD:factions(playerid, params[], help) { new szDialog[210], szDialog2[1700]; strcat(szDialog2, "Numele factiunii\tMembrii/Locuri\tAplicatii\n"); for(new i = 1; i < 14; i++) { format(szDialog, sizeof(szDialog), "%d. {%s}%s{FFFFFF}\t%s/10\t%s\n", i, ColorFaction[i], FactionName(i), GetFactionMembers(i), GetFactionStatus(i)); strcat(szDialog2, szDialog); } strcat(szDialog2, "Numele factiunii\tMembrii/Locuri\tAplicatii\n"); for(new i = 1; i < 14; i++) { aici ai verificatia daca sunt pana in 14 factiuni , probabil ai mai multe.Inlocuieste 14 cu cate ai Quote Link to comment Share on other sites More sharing options...
0 XFLaviusX Posted January 10, 2021 Author Report Share Posted January 10, 2021 Acum 1 minut, Kira. a spus: YCMD:factions(playerid, params[], help) { new szDialog[210], szDialog2[1700]; strcat(szDialog2, "Numele factiunii\tMembrii/Locuri\tAplicatii\n"); for(new i = 1; i < 14; i++) { format(szDialog, sizeof(szDialog), "%d. {%s}%s{FFFFFF}\t%s/10\t%s\n", i, ColorFaction[i], FactionName(i), GetFactionMembers(i), GetFactionStatus(i)); strcat(szDialog2, szDialog); } strcat(szDialog2, "Numele factiunii\tMembrii/Locuri\tAplicatii\n"); for(new i = 1; i < 14; i++) { aici ai verificatia daca sunt pana in 14 factiuni , probabil ai mai multe.Inlocuieste 14 cu cate ai Pai in baza sunt 13 si eu vreau sa o adaug pe a 14- a. Quote Link to comment Share on other sites More sharing options...
0 Kira. Posted January 10, 2021 Report Share Posted January 10, 2021 Ai ceva max factions ?Namefaction sau idk? Quote Link to comment Share on other sites More sharing options...
0 Shad0wdpbgd Posted January 18, 2021 Report Share Posted January 18, 2021 trebuie sa maresti limitele, nu stiu exact cum e pe HPQ Quote Link to comment Share on other sites More sharing options...
Question
XFLaviusX
Deci eu stiu ca atunci cand treci o factiune sau un job in baza de date se adauga automat in lista de /factions sau /jobs... dar eu cand trec in baza o factiune/job nou(a) nu se implementeaza pe joc, de ce ? Multumesc pentru atentia acordata.
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.