02.07.2017, 16:24
Yeah.. i figured that out by myself but after this i have another issue, the file is saving the name but idk how to use dini_Get so that the name can show up in another place like this
This is saving
How can i make so that the Best killer can show in the other place?
Код:
if(!dini_Exists("war/TopKills1.txt")) dini_Create("war/TopKills1.txt"); format(str, 256,"{63380A}Triads{FFFFFF}-{808000}LSV{FFFFFF}-{008000}Grove{FFFFFF}, Best Killer: [{63380A}%s{FFFFFF}] || Kills: [{63380A}%d{FFFFFF}]",name, PlayerInfo[TopKills1][pWarKills]); dini_Set("war/TopKills1.txt", "BK1", name);
Код:
format(cstring, sizeof(cstring),"\n \n {FFFFFF}Best Killer: {63380A}%s{FFFFFF} - Kills -[{63380A}%d{FFFFFF}] | {800000}%s{FFFFFF} - Kills - [{800000}%d{FFFFFF}]", dini_Get("war/TopKills1.txt","BK1"), PlayerInfo[TopKills1][pWarKills], dini_Get("war/TopKills2.txt","BK2"), PlayerInfo[TopKills2][pWarKills]);