20.03.2015, 17:26
Quote:
"3) it printed "Virtualworld set: 0" why? I'm setting it!"
Then something is wrong with your reading system, not the function itself. |
pawn Код:
public LoadUser_PlayerData(playerid,name[],value[])
{
INI_String("Password", PlayerInfo[playerid][pPass], 129);
INI_Int("Kills",PlayerInfo[playerid][pKills]);
INI_Int("BizID",PlayerInfo[playerid][BizID]);
INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
INI_Int("Money", PlayerInfo[playerid][pMoney]);
INI_Int("MaskID", PlayerInfo[playerid][pMask]);
INI_Int("Admin", PlayerInfo[playerid][pAdmin]);
INI_Int("Ban", PlayerInfo[playerid][pBan]);
INI_String("IP", PlayerInfo[playerid][pIP], 16);
INI_Int("Interior", PlayerInfo[playerid][pInterior]);
INI_Int("VirutalWorld", PlayerInfo[playerid][pVW]);
INI_Int("Skin", PlayerInfo[playerid][pSkin]);
INI_Int("Gender", PlayerInfo[playerid][pGender]);
INI_Int("Age", PlayerInfo[playerid][pAge]);
INI_Int("Hospital", PlayerInfo[playerid][pHospital]);
INI_Float("Health", PlayerInfo[playerid][pHealth]);
INI_Float("Armour", PlayerInfo[playerid][pArmour]);
INI_Float("PositionX",PlayerInfo[playerid][posX]);
INI_Float("PositionY",PlayerInfo[playerid][posY]);
INI_Float("PositionZ",PlayerInfo[playerid][posZ]);
INI_Float("PositionA",PlayerInfo[playerid][posA]);
return 1;
}
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
Then im spawning the player, and under OnPlayerSpawn SetPlayerVirtualWorld.