// Public where I use
public AccountDataLoad(playerid, tag[], name[], value[])
{
if(!strcmp("CityIsSelected",name,true))
{
if(boolstr(value))
BitFlag_GiveIt(g_PlayerFlags[playerid],IsHasCitySelected);
else
BitFlag_TakeIt(g_PlayerFlags[playerid],IsHasCitySelected);
}
}
PHP Code:
// Bit Flag and Bit Enum
enum PlayerFlags:(<<= 1)
{
IsHasCitySelected = 1,
}
new PlayerFlags:g_PlayerFlags[MAX_PLAYERS];
Problem solved then. Using a preprocessor definition was not appropriate for that third one anyway.