Using Multi-Dimensional Arrays with an ID
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:
Do you guys understand this? Storing the player's id and his target's id in one multi-dimensional array? |
Re: Using Multi-Dimensional Arrays with an ID
Quote:
new g_hitman[33] g_hitman[id] = targetid. |
What values can the g_hitman[id] hold? Because I thought the 33 was for the players in the server...no?
|
Quote:
|
Thank you, but now, when someone dies, it will go to my death_msg function, and how do I check if that person that died was anyone's targetid (as in g_hitman[id] = targetid?
I think I am going to do something like Code:
Code:
|
I think I know what you're trying to do:
Code:
|
Oh I see :D
Thanks v3x 8) |
| All times are GMT -4. The time now is 15:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.