View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 05-08-2012 , 16:36   Re: Array Question
Reply With Quote #2

As asherkin pointed out in the other thread, enums don't work that way.

If you want to create an array with default values, you can do this:

PHP Code:
new g_var[] = { 500060008000 }; 
and use it like this:

PHP Code:
PrintToChatAll("test 2 first:%i second:%i third:%i",g_var[0],g_var[1],g_var[2]); 
Note: I didn't actually test this, but it does compile.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 05-08-2012 at 16:37.
Powerlord is offline