21.03.2011, 13:15
Hey,
I have a problem with loading the data from the .ini files. I recently noticed that when I restart the server that I can't use many of the options anymore since the data of the .ini file isn't loaded in the right way. My Code:
As far as I know, the skin and password option works but the rest not, what's wrong here?
I have a problem with loading the data from the .ini files. I recently noticed that when I restart the server that I can't use many of the options anymore since the data of the .ini file isn't loaded in the right way. My Code:
Код:
public LoadUserData(playerid, name[ ], value[ ]) { if(!strcmp(name, "Skin")) { PlayerInfo[playerid][userskin] = strval(value); } if(!strcmp(name, "Password")) { format(PlayerInfo[playerid][userpassword], 64, "%s", value); } if(!strcmp(name, "Age")) { PlayerInfo[playerid][userage] = strval(value); } if(!strcmp(name, "Gender")) { format(PlayerInfo[playerid][usergender], 6, "%s", value); } if(!strcmp(name, "Faction")) { format(PlayerInfo[playerid][userfaction], 100, "%s", value); } if(!strcmp(name, "Rank")) { format(PlayerInfo[playerid][userrank], 100, "%s", value); } if(!strcmp(name, "Spawn")) { format(PlayerInfo[playerid][userspawn], 8, "%s", value); } if(!strcmp(name, "Cash")) { PlayerInfo[playerid][usercash] = strval(value); } if(!strcmp(name, "Bank")) { PlayerInfo[playerid][userbank] = strval(value); } if(!strcmp(name, "Pin")) { PlayerInfo[playerid][userpin] = strval(value); } if(!strcmp(name, "Bank Creation Date")) { format(PlayerInfo[playerid][userbankdate], 10, "%s", value); } if(!strcmp(name, "Date of Registration")) { format(PlayerInfo[playerid][userregdate], 10, "%s", value); } }