Raised This Month: $ Target: $400
 0% 

enum problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 04-27-2011 , 15:43   Re: enum problem
Reply With Quote #4

I thought so
Please read this http://wiki.amxmodx.org/index.php/Pawn_Tutorial#Arrays the section about arrays (link) and strings (right after arrays)
And about enum - it declares and auto-calculates variables.

PHP Code:
enum
{
    
MYVAR1,
    
MYVAR2,
    
MYVAR99,
    
MYVAR7,
    
ILOVEHOTDOGS,
    
HAHA

will create new variables and set their values: MYVAR1=0, MYVAR2=1, MYVAR99=2, MYVAR7=3, ILOVEHOTDOGS=4, HAHA=5

And what you did will s͖̦͔͎̎ú̼͎͍m̗̥͚̯̼̜͂̃̾̌̔m̦̱̳͉̯͔ͮ͌̌ͭͤo̳̯̝͔͚̤̎̐͢ ͔n ̹̗̺̙̋ͦ͌c̶ͩ̿t̚҉͙̱̪̗̦ḧ̥̟̯͇̳̦́ͅụ̰̹̤̝̞̣̂ͥ̓̌̌̆l̓͡ ̟̺̘̩̠͍̩ḩ͎͉̤̯̬̙ͨ͂̍͊ͣͥ̀u̎ͮ.
__________________


Last edited by SonicSonedit; 04-27-2011 at 15:49.
SonicSonedit is offline
 



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 04:25.


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