help with whisper
#2

That's because you're checking the distance to the co-ordinates of the player who's ID is the value of "id", which is not specifically defined by you, therefore by default it is 0. So you're comparing the location of ID 0 with dpX, dpY and dpZ which have no locations stored in them, yet again, they are defaulted to 0.0000.

Do you see the problem here? For such a command, you need a loop which will go through the players and send them the message each if they are in range.
Reply


Messages In This Thread
help with whisper - by tanush - 09.03.2011, 00:26
Re: help with whisper - by JaTochNietDan - 09.03.2011, 00:33
Re: help with whisper - by tanush - 09.03.2011, 01:09

Forum Jump:


Users browsing this thread: 1 Guest(s)