![]() |
player[index].darts player[index].bombs
what is index? It used to be like playerdarts and playerbombs that held arrow and bomb count. Whats the new way?
|
it's another way of naming the players?
each player has an index in a level... it's like the index of showimg. it's just another way of singleling out one thing from another... NPC Code: ^It grabs the player by index, and not account name or anything like that. I don't know how to explain it :-p. |
because he used
for (i=0; i<playerscount; i++){..} since it begin's with i i'm thinking the index must be i? |
Think of it this way, players is a list, let's say it currently looks like this:
NPC Code:GuyA GuyA is position 0, GalB is position 1, and so on. eg: NPC Code:0: GuyA An index essentially the position in the list. (Usually -1 since most lists start from a 0 based index, as does Graal) |
Quote:
|
how would you get the indea of just one person though? If you have their account name that is.
|
Quote:
with(getplayer(account)){ } ?! |
err... i guess so lol.
|
Quote:
|
| All times are GMT +2. The time now is 03:05 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.