Hello. How can i assign the right const according to the variable size, number whatever?
PHP Code:
new g_DayType[7] // Which Day Type is today?
new const Types[][] =
{
"Normal Day",
"Free Day",
"Games Day"
}
Now, i need to show right day type in the status hud.
PHP Code:
set_hudmessage( 255, 0, 0, 0.05, 0.20, 0, 0.1, 1.0, 0.1, 0.1, 3 );
show_hudmessage( 0, "[STATUS]^n- Day Type: %s", Types[g_DayType] );
That is what i have been trying, but its not working. Can someone help me please?
Note: I've attached number 7 to g_DayType, becasue there are 7 days ( 0, 1, 2, 3, 4, 5, 6 ... And 7 for 0 again ), so the Server can count the days. Which means, this is how im declaring the day, and day type.
PHP Code:
g_DayType[0] = 0
First 0 says which day it is, and the second is attaching a day type to the day. Hope you understood me.