craksy
Member
|
Re: character input?
ok so, all players in the map, are stored in a 'Players' array?
and what excactly does chr.elms mean?
anyway thanks alot
and btw. Chrs undeclared identifier?
|
|
12-21-2008 02:18 PM |
|
Esenthel
Administrator
|
Re: character input?
yes, if world will have multiple players they all will be stored in this array
'elms' function return number of elenets
if(Players.elms()) // means if number of players isn't zero
its used because you can't access 0-th player when it doesn't exist, so first you have to check if it really exists
and then access it
|
|
12-21-2008 02:24 PM |
|
Esenthel
Administrator
|
Re: character input?
sorry, it should be Players.elms instead of Chrs.elms (I've editied the post)
|
|
12-21-2008 02:25 PM |
|
craksy
Member
|
Re: character input?
ok so its kinda error check, so prevent the it from crashing during runtime because it cant find the player? .... or what?
|
|
12-21-2008 02:30 PM |
|
Esenthel
Administrator
|
|
12-21-2008 02:32 PM |
|