AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   enum TASK problems (https://forums.alliedmods.net/showthread.php?t=207060)

manfailui 01-29-2013 07:34

enum TASK problems
 
if i want to add 100 task
enum (+= 100)
{
TASK_ABC[101]
}

work?

guipatinador 01-29-2013 08:18

Re: enum TASK problems
 
PHP Code:

enum ( += 100 ) {
    
TASK_1 100,
    
TASK_2,
    
TASK_3



ConnorMcLeod 01-29-2013 12:27

Re: enum TASK problems
 
PHP Code:

new const TASKS_INDEXES[101] = {0,1,...} 

Then TASKS_INDEXES if filled from 0 to 100.


Quote:

Originally Posted by guipatinador (Post 1882875)
PHP Code:

enum ( += 100 ) {
    
TASK_1 100,
    
TASK_2,
    
TASK_3



This is wrong and will only store 3 tasks indexes, 100,200 and 300.


All times are GMT -4. The time now is 20:38.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.