15.03.2013, 08:29
First of all, thank you for reading this.
As the title says/asks.. how may I get a bool's value ( true/false ) using dini? I used dini_Bool( filename, boolname)
but when I compile I get "Tag mismatch" warning.. Here's the line I am using.
Here's the enumeration:
Here's the format of the player's file:
This is under OnPlayerConnect.
What am I doing wrong?
As the title says/asks.. how may I get a bool's value ( true/false ) using dini? I used dini_Bool( filename, boolname)
but when I compile I get "Tag mismatch" warning.. Here's the line I am using.
pawn Код:
PlayerInfo[playerid][Helper] = dini_Bool(file, "Helper");
pawn Код:
enum pInfo
{
AdminLevel,
SkinID,
PlayerLevel,
Cash,
Banned,
Tier,
Faction,
Rank [256],
Invited,
Bank,
Float:RentX,
Float:RentY,
Float:RentZ,
Rented,
RentedHouseID,
bool:Helper,
}
new PlayerInfo[MAX_PLAYERS][pInfo];
pawn Код:
GetPlayerName(playerid, aname, sizeof(aname));
format(file, sizeof(file), "Users/%s.ini", aname);
What am I doing wrong?