29.06.2017, 12:01
So i am trying to make a playername as a string using dini. this is the code i am trying to make but there is nothing wrote in the .txt file
Code:
new name[128]; new string[128]; GetPlayerName(TopKills1, name, sizeof(name)); 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]); SendClientMessageToAll(COLOR_WHITE,str); if(dini_Exists("scriptfiles/war/TopKills1.txt")) { dini_Set("scriptfiles/war/TopKills1.txt", "%s", name); }