I build a menu with categories and after that i hook second menu.
I need to prevent the code to show double categories.
Here is the code:
Code:
for(new i=1;i < file_size(file,1);i++)
{
formatex(tempid4,255,"%d",i-1)
new data[1024],buffer
read_file(file,i,data,1023,buffer)
parse(data,category,63)
if(!equal(data,"//",2) && !equal(data,""))
menu_additem(menu,category,tempid4,0)
}
Here is content in ini file:
"Deathrun" "IP: 127.0.0.1:27016"
"Deathrun" "IP: 127.0.0.1:27017"
"Classic" "IP: 127.0.0.1:27018"
But in category menu shows Deathrun two times i need to show only one item as name "Deathrun".