User data doesn't save
#3

Quote:
Originally Posted by xMoBi
Посмотреть сообщение
try this:

PHP код:
public UserSave(playerid

    if(
loggedin[playerid] == true
    { 
        new 
file[64], Float:XFloat:YFloat:ZFloat:RotFloat:HealthFloat:Armour
        
format(filesizeof(file), USER_PATHGetPlayerNameEx(playerid)); 
        
GetPlayerPos(playeridXYZ); 
        
GetPlayerFacingAngle(playeridRot); 
        
GetPlayerHealth(playeridHealth); 
        
GetPlayerArmour(playeridArmour); 
        
dini_IntSet(file"Register"PlayerInfo[playerid][pRegister]); 
        
dini_IntSet(file"Cash"GetPlayerCash(playerid)); 
        
dini_IntSet(file"Account"PlayerInfo[playerid][pAccount]); 
        
dini_IntSet(file"Level"PlayerInfo[playerid][pLevel]); 
        
dini_IntSet(file"Exp"PlayerInfo[playerid][pExp]); 
        
dini_IntSet(file"Skin"PlayerInfo[playerid][pSkin]); 
        
dini_IntSet(file"Gender"PlayerInfo[playerid][pGender]); 
        
dini_FloatSet(file"Health"Health); 
        
dini_FloatSet(file"Armour"Armour); 
        
dini_FloatSet(file"PosX"X); 
        
dini_FloatSet(file"PosY"Y); 
        
dini_FloatSet(file"PosZ"Z); 
        
dini_FloatSet(file"Rot"Rot); 
        
dini_IntSet(file"Interior"GetPlayerInterior(playerid)); 
        
dini_IntSet(file"VW"GetPlayerVirtualWorld(playerid)); 
        
dini_IntSet(file"Admin"PlayerInfo[playerid][pAdmin]); 
        
dini_IntSet(file"Ban"PlayerInfo[playerid][pBan]); 
        
dini_IntSet(file"BanEnd"PlayerInfo[playerid][pBanEnd]); 
    }
    return 
1

Still same :/
Reply


Messages In This Thread
User data doesn't save - by haikalbintang - 15.12.2017, 11:37
Re: User data doesn't save - by xMoBi - 15.12.2017, 11:51
Re: User data doesn't save - by haikalbintang - 15.12.2017, 11:55
Re: User data doesn't save - by jasperschellekens - 15.12.2017, 13:16

Forum Jump:


Users browsing this thread: 1 Guest(s)