[YINI] A parameter won't load.
#1

Hey.
I have my last player's variable which don't load (pMDJ). Every other parameter is working.
PHP код:
public LoadUser_data(playerid,name[],value[])
{
    
INI_Int("MDP",PlayerInfo[playerid][pMDP]);
    
INI_Int("Admin",PlayerInfo[playerid][pAdminlvl]);
    
INI_Int("Cash",PlayerInfo[playerid][pCash]);
    
ResetPlayerMoney(playerid);
    
GivePlayerMoney(playeridPlayerInfo[playerid][pCash]);
    
INI_Int("Score",PlayerInfo[playerid][pScore]);
    
SetPlayerScore(playeridPlayerInfo[playerid][pScore]);
    
INI_Int("Log",PlayerInfo[playerid][pLog]);
    
INI_Int("Register",PlayerInfo[playerid][pRegister]);
    
INI_Int("VIP",PlayerInfo[playerid][pVIP]);
    
INI_Int("Kill",PlayerInfo[playerid][pKill]);
    
INI_Int("Death",PlayerInfo[playerid][pDeath]);
    
INI_Int("Kick",PlayerInfo[playerid][pKick]);
    
INI_Int("Ban",PlayerInfo[playerid][pBan]);
    
INI_String("IP",PlayerInfo[playerid][pIP], 16);
    
INI_Int("Vehicle1",PlayerInfo[playerid][pVehicle1]);
    
INI_Int("Vehicle2",PlayerInfo[playerid][pVehicle2]);
    
INI_Int("Vehicle3",PlayerInfo[playerid][pVehicle3]);
    
INI_Int("AutoLogin"PlayerInfo[playerid][pAutoLogin]);
    
INI_Int("AutoSpawn"PlayerInfo[playerid][pAutoSpawn]);
    
INI_Int("Banque"PlayerInfo[playerid][pBanque]);
    
INI_Float("PosX"PlayerInfo[playerid][pX]);
    
INI_Float("PosY"PlayerInfo[playerid][pY]);
    
INI_Float("PosZ"PlayerInfo[playerid][pZ]);
    
INI_Int("VirtualWorld"PlayerInfo[playerid][pWorld]);
    
INI_Int("Interior"PlayerInfo[playerid][pInterior]); // Working
    
INI_Int("MDJ"PlayerInfo[playerid][pMDJ]); // Not working
    
return 1;

PHP код:
enum pInfo
{
    
pMDP,
    
pAdminlvl,
    
pCash,
    
pScore,
    
pLog,
    
pRegister,
    
pVIP,
    
pKill,
    
pDeath,
    
pKick,
    
pBan,
    
pIP[16],
    
pVehicle1,
    
pVehicle2,
    
pVehicle3,
    
pAutoLogin,
    
pAutoSpawn,
    
pBanque,
    
Float:pX,
    
Float:pY,
    
Float:pZ,
    
pWorld,
    
pInterior,
    
pMDJ

PHP код:
 #OnPlayerConnect
    
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra true, .extra playerid); 
Reply
#2

try to add a another variable in your enum like

PHP код:
enum pInfo 

    
pMDP
    
pAdminlvl
    
pCash
    
pScore
    
pLog
    
pRegister
    
pVIP
    
pKill
    
pDeath
    
pKick
    
pBan
    
pIP[16], 
    
pVehicle1
    
pVehicle2
    
pVehicle3
    
pAutoLogin
    
pAutoSpawn
    
pBanque
    
Float:pX
    
Float:pY
    
Float:pZ
    
pWorld
    
pInterior
    
pMDJ,
    
blahh//here just for testing if that worked reply here i think i know the problem 

Reply
#3

well how are you saving(writing them),
Reply
#4

Solved, I'm just retarded as fuck.
Thanks for help.
Reply
#5

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
Solved, I'm just retarded as fuck.
Thanks for help.
How you solved post it too so that some one who might facing same problem can refer here
Reply
#6

Quote:
Originally Posted by Sreyas
Посмотреть сообщение
How you solved post it too so that some one who might facing same problem can refer here
Huumm.. I just deleted that line :')
PHP код:
#OnPlayerConnect()
PlayerInfo[playerid][pMDJ] = 0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)