02.01.2016, 13:21
Hahhahah @fuckingcruse HAHAHHA, you really made me laugh
And, no the tag is simply created with INI_SetTag();
And, no the tag is simply created with INI_SetTag();
PHP код:
public OnPlayerDisconnect(playerid, reason)
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File, "PlayerData");
INI_WriteInt(File, "Password", PlayerInfo[playerid][Password]);
INI_WriteInt(File, "Admin", PlayerInfo[playerid][AdminLevel]);
INI_WriteInt(File, "Money", PlayerInfo[playerid][Money]);
INI_WriteInt(File, "Vip", PlayerInfo[playerid][VipLevel]);
INI_WriteInt(File, "Mechanic", PlayerInfo[playerid][Mechanic]);
INI_WriteInt(File, "SupportMember", PlayerInfo[playerid][SupportMember]);
INI_WriteInt(File, "Hitman", PlayerInfo[playerid][Hitman]);
INI_Close(File);
PHP код:
OnDialogResponse()
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File, "PlayerData");
INI_WriteInt(File, "Password", udb_hash(inputtext));
INI_WriteInt(File, "Admin", 0);
INI_WriteInt(File, "Money", 0);
INI_WriteInt(File, "Vip", 0);
INI_WriteInt(File, "Mechanic", 0);
INI_WriteInt(File, "SupportMember", 0);
INI_WriteInt(File, "Hitman", 0);
INI_Close(File);