Bug with ID's - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Bug with ID's (
/showthread.php?tid=647453)
Bug with ID's -
Klayton - 05.01.2018
Hello samp I have an bug with my script for view all factions of server
In SendClientMessage, the ID's its ok (1,2,3..)
>
http://prntscr.com/hweufo
But In dialog, the ID's is (0,1,2...)
>
http://prntscr.com/hweuma
Script of commands:
>
https://pastebin.com/pGU0X1Gh
Re: Bug with ID's -
KayJ - 05.01.2018
Try adding
Code:
&& FactionInfo[i][f_Type] == 1)
In line 46 after 0
(Ref: your code uploaded on website)
I hope it works otherwise I need to make all variables and put perfect code to you. Let me know
Re: Bug with ID's -
Klayton - 05.01.2018
I try and not fixed
Re: Bug with ID's -
Klayton - 05.01.2018
up please ?
Re: Bug with ID's -
Misiek. - 05.01.2018
Change:
Code:
format(str, sizeof(str), "{ADC3E7}%d \t\t\t %s \t\t\t [%d connectŠ¹(s) sur %d]\n", i, FactionInfo[i][f_Name], ReturnOnlineMembers(i), ReturnTotalMembers(i));
To:
Code:
format(str, sizeof(str), "{ADC3E7}%d \t\t\t %s \t\t\t [%d connectŠ¹(s) sur %d]\n", FactionInfo[i][f_ID], FactionInfo[i][f_Name], ReturnOnlineMembers(i), ReturnTotalMembers(i));
Cheers