15.07.2014, 17:21
I have a problem with dini_Set
Code:
stock AddPlayerToFactionFile(playername[])
It updated on the file. But, after the player makes relog it is updated.
For example: someone invited to the faction, he quit from the game. we did the command which should show us the faction's players who offline, it didn't show us. the player loggin again and exit out of the game and then it updated.
Code:
stock AddPlayerToFactionFile(playername[])
Код:
{ new FactionFileAndOkay[20]; if(dUserINT(playername).("playerteam") == 7) { for(new i = 0; i < 150; i++) { format(FactionFileAndOkay, sizeof(FactionFileAndOkay), "Member%d", i); if(strcmp(dini_Get("LSPD.ini", FactionFileAndOkay), playername) == 0) break; if(strcmp(dini_Get("LSPD.ini", FactionFileAndOkay), "None") == 0) { dini_Set("LSPD.ini", FactionFileAndOkay, playername); break; } } }
For example: someone invited to the faction, he quit from the game. we did the command which should show us the faction's players who offline, it didn't show us. the player loggin again and exit out of the game and then it updated.