Y_INI Loading problem
#4

Quote:
Originally Posted by Jarnu
Посмотреть сообщение
Yea i do
pawn Код:
public OnPlayerConnect(playerid)
{
    Enablevheal[playerid] = 1; //Enabling the /vheal command on player connect--
    Enablevbonus[playerid] = 1; //Enabling the /vbonus command on player connect
    HasSpawnedCar[playerid] = 0;//-Setting the value to 0
    //-------------Checking and creating the player account in database---------
    if(fexist(getACC(playerid)))
    {
       new string[256];
       INI_ParseFile(getACC(playerid),"loadvip_%s",.bExtra = true, .extra = playerid);
       format(string, sizeof(string),"Welcome %s Your VIP level has been successfully loaded [VIP Level: %d][VIP Rank: %s]",PlayerName(playerid),PlayerInfo[playerid][pVIP],Rank(playerid));
       print("\n----------------------------------------------------------");
       printf("_____[%s] Very Important Player Connected_____", PlayerName(playerid));
       print("------------------------------------------------------------\n");
       SendClientMessage(playerid, GREEN,string);
    }
    else
    {
       MakeACC(playerid); //Creating the account if the account doesn't exists
    }
    return 1;
}
pawn Код:
public loadvip_acc(playerid, name[], value[])
{
    new vipacc;
    INI_Int("Level", vipacc);
    PlayerInfo[playerid][pVIP] = vipacc;
    return 1;
}
You are only loading the level when Parsing!, where are your other variables that you want to load and also don't create a new variable for it make it like this :
pawn Код:
public loadvip_acc(playerid, name[], value[])
{
    INI_Int("Level", PlayerInfo[playerid][pVIP]);
   /* Your other variables you want to load add it here */
    return 1;
}
Reply


Messages In This Thread
Y_INI Loading problem - by Jarnu - 21.09.2012, 05:24
Re: Y_INI Loading problem - by Lordzy - 21.09.2012, 05:30
Re: Y_INI Loading problem - by Jarnu - 21.09.2012, 05:32
Re: Y_INI Loading problem - by Glint - 21.09.2012, 05:40
Re: Y_INI Loading problem - by Jarnu - 21.09.2012, 05:42
Re: Y_INI Loading problem - by Glint - 21.09.2012, 05:43
Re: Y_INI Loading problem - by Jarnu - 21.09.2012, 05:45
Re: Y_INI Loading problem - by Glint - 21.09.2012, 05:50
Re: Y_INI Loading problem - by Jarnu - 21.09.2012, 06:03
Re: Y_INI Loading problem - by Glint - 21.09.2012, 06:06

Forum Jump:


Users browsing this thread: 1 Guest(s)