Raised This Month: $ Target: $400
 0% 

enum TASK problems


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
manfailui
Member
Join Date: Jun 2012
Location: Hong Kong
Old 01-29-2013 , 07:34   enum TASK problems
Reply With Quote #1

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

work?
__________________
I Come from Hong Kong.
my English is very poor
manfailui is offline
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 01-29-2013 , 08:18   Re: enum TASK problems
Reply With Quote #2

PHP Code:
enum ( += 100 ) {
    
TASK_1 100,
    
TASK_2,
    
TASK_3


Last edited by guipatinador; 01-29-2013 at 08:19.
guipatinador is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-29-2013 , 12:27   Re: enum TASK problems
Reply With Quote #3

PHP Code:
new const TASKS_INDEXES[101] = {0,1,...} 
Then TASKS_INDEXES if filled from 0 to 100.


Quote:
Originally Posted by guipatinador View Post
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.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 01-29-2013 at 12:28.
ConnorMcLeod is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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