21.09.2009, 16:29
Quote:
Originally Posted by BeckzyBoi
GetPlayerWeaponData returns -1 when the server doesn't recieve the information from the client quick enough. It isn't a bug, it is just because of lag. How can it tell you the data if it doesn't know it itself?
|
GetPlayerWeaponData(); and SendClientMessage.
if I don't do anything, it just always works without any bug
from the moment I change my weapon (scroll) a few times, I Always get -1
so.. it doesn't return -1 because the client responds to slow....
it's Definitely something else
Quote:
Originally Posted by Seif_ [adream-rp.com
]
If it returns -1, can you do a while() loop? If it's lag, then it should fix itself right after, no? |
-1 just stays for ever untill I use GivePlayerWeapon again
this creates a never-ending while loop witch overflows the server (yes I tested it)
(I jused "goto" instead of a while loop)