11.06.2014, 13:45
Im using Y_INI to save the player stats (Info).
OnPlayerConnect
dialog response
Whats the problem?
OnPlayerConnect
pawn Код:
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
// The rest is dialogs , the other stats load normally , only the admin level is 5
pawn Код:
for register:
INI_SetTag(File,"data");
INI_WriteInt(File,"Username",MAX_PLAYER_NAME);
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"Cash",0);
INI_WriteString(File, "Ip", IP);
INI_WriteInt(File,"Score",0);
INI_WriteInt(File,"Admin",0);
INI_WriteInt(File,"Kills",0);
INI_WriteInt(File,"Deaths",0);
INI_WriteInt(File,"Banned",0);
INI_WriteInt(File,"BannedBy",0);
INI_WriteInt(File,"BannedName",0);
INI_WriteInt(File,"BannedFor",0);
INI_Close(File);