Bug with ID's
#1

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
Reply
#2

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
Reply
#3

I try and not fixed
Reply
#4

up please ?
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)