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;
}