Raised This Month: $ Target: $400
 0% 

Using Multi-Dimensional Arrays with an ID


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 01-01-2006 , 01:16   Re: Using Multi-Dimensional Arrays with an ID
Reply With Quote #2

Quote:
Originally Posted by Des12
Ok, so I am scripting a hitman plugin, which bascially assigns someone a player to kill, and it stores there id and the target's id in one line.

So would something like this work?

Code:
//in the global declarations new g_hitman[33][33] //in the code g_hitman[id][targetid] //now the ID is assigned by the function, but how would I assign the targetid?

Do you guys understand this? Storing the player's id and his target's id in one multi-dimensional array?
You don't need a multi-demensional array for this unless your trying to hold another value or something in there.. You can just do this..


new g_hitman[33]

g_hitman[id] = targetid.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
 



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 15:51.


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