PDA

View Full Version : Transfering Data...


projectigi
09-11-2006, 12:42 AM
Hi,

so i have a problem now
i need to send the client the position of all other players(or at least all that the client can see on the screen) and a few strings for every player
how would i do that?(well its easy but how would i do that without lagging the whole server, since it will happen like every .2 secs and will be done for every player)

JkWhoSaysNi
09-11-2006, 12:48 AM
check out my map script I recently posted in the Code Gallery. It solves this exact problem. :)

http://forums.graalonline.com/forums/showthread.php?goto=newpost&t=68644

projectigi
09-11-2006, 01:40 AM
well i dont know if like 40+ triggeractions every .2 seconds are good for the server Oo

JkWhoSaysNi
09-11-2006, 02:11 AM
what do you need so much data to be constantly transferred for? There might be a better way to do it.

Yen
09-11-2006, 04:11 AM
The player's attr[1-30] variables are global, meaning they're shared between server and all clients, and can hold up to 255 characters.
attr[1] is the hat image by default. Also, you can set ganis to the attr[] attributes to attach them to the player.