15.12.2012, 16:48
Alright, so I am using the Y_INI saving system and I cannot seem to get the money to give to a player properly or something. I have defined here that when a player registers that they receive money but those variables fail to set:
Any help on my situation will be greatly appreciated!
~Nmader
pawn Код:
new hashpass[129];
WP_Hash(hashpass,sizeof(hashpass),inputtext);
new INI:file = INI_Open(Path(playerid));
INI_SetTag(file,"Player's Data");
INI_WriteString(file,"Password",hashpass);
INI_WriteInt(file,"Age",0);
INI_WriteInt(file,"AdminLevel",0);
INI_WriteInt(file,"DonatorLevel",0);
INI_WriteInt(file,"Money",500);
INI_WriteInt(file,"BankMoney", 2500);
INI_WriteInt(file,"Level",1);
INI_WriteInt(file,"Kills",0);
INI_WriteInt(file,"Deaths",0);
INI_WriteInt(file,"Military",0);
INI_WriteInt(file,"MilitaryRank",0);
INI_WriteInt(file,"MilitaryCustomRank",0);
INI_WriteInt(file,"SpawnSelection",0);
INI_Close(file);
return 1;
~Nmader