About Store Forum Documentation Contact



Post Reply 
character input?
Author Message
craksy Offline
Member

Post: #16
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 grin

and btw. Chrs undeclared identifier?
12-21-2008 02:18 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #17
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
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #18
Re: character input?
sorry, it should be Players.elms instead of Chrs.elms (I've editied the post)
12-21-2008 02:25 PM
Find all posts by this user Quote this message in a reply
craksy Offline
Member

Post: #19
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
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #20
Re: character input?
yes
12-21-2008 02:32 PM
Find all posts by this user Quote this message in a reply
Post Reply