SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 05/12/2012, 08:16 PM   #1
2KY
Gangsta
 
2KY's Avatar
 
Join Date: Jan 2012
Location: United States
Posts: 950
Reputation: 166
Default Array/Enum(?)

I forget the name for this, but how would I go about doing something like...

pawn Code:
items = [ MAX_ITEMS ] [ ] =
    { 1, ITEM_MEDKIT }
};

And I could then call it like;

pawn Code:
items [ 0 ] [ 0 ] (this would return "1")
__________________
Check out my wiki page
2KY is offline   Reply With Quote
Old 05/12/2012, 08:43 PM   #2
LarzI
High-roller
 
LarzI's Avatar
 
Join Date: Apr 2007
Location: Norway
Posts: 2,628
Reputation: 136
Default Re: Array/Enum(?)

Explain further what you want.
__________________


NEW: [FS] Simple Cellphones

if( strfind( title, "REP", true ) != -1 )
{________________________________________
Sigh();__________________________
}________________________________________


LarzI is offline   Reply With Quote
Old 05/12/2012, 08:51 PM   #3
Nordic
Little Clucker
 
Join Date: Nov 2012
Location: United States
Posts: 35
Reputation: 16
Default Re: Array/Enum(?)

items[MAX_ITEMS][] = { { 1, MAX_MEDKIT } };

??
Nordic is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Array/enum help nickdodd25 Scripting Help 7 18/04/2012 04:16 PM
[help]enum 2 demension array Jonny5 Scripting Help 0 16/03/2012 01:29 PM
Problem with array subscript in enum Jochemd Help Archive 4 07/05/2011 09:29 AM
Set an whole enum array Manuel1948 Help Archive 1 02/04/2011 04:17 AM


All times are GMT. The time now is 06:45 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.