21.06.2014, 16:39
Quote:
Deleting
You can also delete values from a file: pawn Код:
pawn Код:
|
Does this mean that if i want to delete Variable_3 it should looks like this Permanently?:
- If "Yes" Can somebody tell me why isn't this working??
I made a "Player's Playing Time in The Server" which should promote the player to the Regular Player Status with deleting a variable after a player reaching 24 hours in-game. But it's kinda promote the player without deleting the value, what's wrong in here?
pawn Код:
if(PlayerInfo[playerid][pPlayingHours] >= 24)
{
if(PlayerInfo[playerid][pHasFailedCE] == 1)
{
new INI:File = INI_Open(UserPath(playerid));
INI_RemoveEntry(File, "HasFailedCE");
INI_Close(File);
}
//rest of code
return 1;
}