Can anyone help me with this one, if I done it correctly?
PHP Code:
enum _:days{
freeday = -1,
sunday,
monday,
tuesday,
wensday,
thirsday,
friday,
saturday
}
new today = freeday //game starts in freeday to allow players to connect
new bool:wasThisDay[days] //this will be an array of bools
... somewhere in the code
if(bool:wasThisDay[thirsday] == false)
{
wasThisDay[thirsday] = true
today = thirsday
}
it's ok to make it like this, wanted to associate numers to defines just like in c