Virtual World problem
#10

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
"3) it printed "Virtualworld set: 0" why? I'm setting it!"

Then something is wrong with your reading system, not the function itself.
This is the reading system from the file:
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;
}
OnPlayerRequestClass he logins. Then, I'm using:
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
Then im spawning the player, and under OnPlayerSpawn SetPlayerVirtualWorld.
Reply


Messages In This Thread
Virtual World problem - by maximthepain - 20.03.2015, 16:26
Re: Virtual World problem - by fuckingcruse - 20.03.2015, 16:36
Re: Virtual World problem - by maximthepain - 20.03.2015, 16:41
Re: Virtual World problem - by fuckingcruse - 20.03.2015, 16:55
Re: Virtual World problem - by SickAttack - 20.03.2015, 17:04
Re: Virtual World problem - by fuckingcruse - 20.03.2015, 17:08
Respuesta: Virtual World problem - by alexus - 20.03.2015, 17:11
Re: Virtual World problem - by maximthepain - 20.03.2015, 17:18
Re: Virtual World problem - by SickAttack - 20.03.2015, 17:22
Re: Virtual World problem - by maximthepain - 20.03.2015, 17:26

Forum Jump:


Users browsing this thread: 1 Guest(s)