Jump to content

Recommended Posts

Posted (edited)

Salut, am si eu un bug la comanda (/factions), am 25 de factiuni in GM, toate de pe BuGGeD + Red Dragon Triads, School Instructors LS.

Link comanda: https://pastebin.com/67vDBPrT

Dovada (VIDEO):  

Problema este ca atunci cand dau /factions nu imi apar unele factiuni, am incercat sa o repar dar n-am reusit.

EDIT: CHECKPOINT-UL ESTE PUS ALTUNDEVA, NU LA HQ, UN HELP VA ROG?

Edited by Lexxu
Posted (edited)

Adauga comanda urmatoare si fa o poza cu mesajul trimis cand o folosesti in joc.

CMD:testx(playerid,params[])
{
     new teststring[32];
     format(teststring, sizeof(teststring), "%s", DynamicFactions[20][fName]);
     SendClientMessage(playerid, -1, teststring);
     return 1;
}
Edited by Stuber
Posted

 

Adauga comanda urmatoare si fa o poza cu mesajul trimis cand o folosesti in joc.

CMD:testx(playerid,params[])
{
     new teststring[32];
     format(teststring, sizeof(teststring), "%s", DynamicFactions[20][fName]);
     SendClientMessage(playerid, -1, teststring);
     return 1;
}

http://imgur.com/a/SLiA4

Posted (edited)

Aici ce mi-ai lasat tu are doar 14 factiuni, iar GM-ul meu are 25.

Nu are nici o legatura aia.Imediat dupa "ShowFactions(playerid)" dupa "{" unde este "new stringz2[MAX_STRING];" pune in loc de aia asta: "new stringz2[3000];"

Daca asa nu merge, inseamnca ca trebuie sa faci inca o variabila si sa schimbi de acolo de unde ai pus tu o noua factiune.Gen "new stringz3[MAX_STRING];" si o sa mearga.Dar sa schimbi peste tot mai ales la sfarsit in loc de "ShowPlayerDialog(playerid, DIALOG_FACTIONS, DIALOG_STYLE_LIST,"Factions", stringz2, "Select", "Cancel");" trebuie sa mai faci un integral.Ceva gen "new FactionsDialog[3500]" si faci asa:

"format(FactionDialog, sizeof(FactionDialog), "%s\n%s", stringz2, stringz3);".Daca se pune un spatiu la /factions in plus sterge "\n si lasa spatiu"

 

EDIT:acum depinde, daca nu o sa mearga fa o copie la CallBack-ul "ShowFactions".

Edited by XGabyRo
Posted

Nu are nici o legatura aia.Imediat dupa "ShowFactions(playerid)" dupa "{" unde este "new stringz2[MAX_STRING];" pune in loc de aia asta: "new stringz2[3000];"

Daca asa nu merge, inseamnca ca trebuie sa faci inca o variabila si sa schimbi de acolo de unde ai pus tu o noua factiune.Gen "new stringz3[MAX_STRING];" si o sa mearga.Dar sa schimbi peste tot mai ales la sfarsit in loc de "ShowPlayerDialog(playerid, DIALOG_FACTIONS, DIALOG_STYLE_LIST,"Factions", stringz2, "Select", "Cancel");" trebuie sa mai faci un integral.Ceva gen "new FactionsDialog[3500]" si faci asa:

"format(FactionDialog, sizeof(FactionDialog), "%s\n%s", stringz2, stringz3);".Daca se pune un spatiu la /factions in plus sterge "\n si lasa spatiu"

 

EDIT:acum depinde, daca nu o sa mearga fa o copie la CallBack-ul "ShowFactions".

Esti paralel. Problema e de la datele din baza de date. Cel mai probabil nu le preia bine sau nu are in db nimic la nume/etc.

Posted

Esti paralel. Problema e de la datele din baza de date. Cel mai probabil nu le preia bine sau nu are in db nimic la nume/etc.

Prietene credema ca nu e chiar asa =)).Am destula experienta in pawno.Poate ca sunt paralel la baze de date :) Ca sunt nou in mysql si dastea, dar asta este frate...

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   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.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. 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.

moduri samp