[SOLVED] Array Question
Hello
Today, I'm looking to create an array with 'default value' (don't know how to say that in English ><) I saw this post: http://forums.alliedmods.net/showthread.php?t=182348& but I don't understand I tested this: PHP Code:
test 2 first:0 second:0 third:0 how can can I return the value in the enum ? (5000,6000,8000) ? thx |
Re: Array Question
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:
PHP Code:
|
Re: Array Question
and is it possible to associate a String to the value
Eg: "Smoke" -> 5000 "Flash" -> 6000 "Godmode" -> 8000 what should I do to perform this ? |
Re: Array Question
Either create a string array and a cell array or use tries
|
Re: Array Question
Quote:
sorry, but I'm a noob in array |
Re: Array Question
Quote:
Code:
|
Re: Array Question
Quote:
:bacon!: |
Re: Array Question
Quote:
PHP Code:
|
Re: Array Question
Quote:
|
All times are GMT -4. The time now is 02:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.