Arrays and Consts
Hello. How can i assign the right const according to the variable size, number whatever?
PHP Code:
PHP Code:
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:
|
Re: Arrays and Consts
you need to index g_DayType array in show_hudmessage
|
Re: Arrays and Consts
Not possible, 'cause i cant index a day. It should do it automatically.
|
Re: Arrays and Consts
new g_DayType[7]
Types[g_DayType] how the hell should g_DayType be indexed automatically there? |
Re: Arrays and Consts
Code:
You should add manually index to g_DayType when some type of day is played. Like: Code:
|
| All times are GMT -4. The time now is 08:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.