Snakes
06-15-2004, 01:50 AM
EDIT:::definitely IS a last hope issue (client side) because i went back to my old exe and this does NOT happen...
Today i noticed that anywhere i play, stathud wasnt showing observers and i also notices my teamhud displaying incorrect observer #'s (showing 0 when there are actually observers). I hadnt touched any of my teamhud code that couldve caused this? I tracked it down to how tribes stores variables i guess. When you access something like $team::count[-1] = 0; it actually stores that like $team::count-1.000000 = 0; but if you do $team::count["-1"] = 0; it actually stores it "correctly" as $team::count-1 = 0;
I was always aware of the fact that tribes did that to arrays, i think andrew had actually pointed that out to me a long time ago. What i noticed though was the fact that an eventTeamChange would pass the floating point -1.000000 for obs but a call to client::getteam(%id) for that same player would return just -1 causing two $team::count variables to be created and confusing the script generating all these little bugs.
My question is, i dont know if this is new or related to the latest zadmin mods or something? I noticed in your pack that you dont display obs counts so you might not have noticed it...
Can anyone confirm that they cannot see players in obs in stathud?
Today i noticed that anywhere i play, stathud wasnt showing observers and i also notices my teamhud displaying incorrect observer #'s (showing 0 when there are actually observers). I hadnt touched any of my teamhud code that couldve caused this? I tracked it down to how tribes stores variables i guess. When you access something like $team::count[-1] = 0; it actually stores that like $team::count-1.000000 = 0; but if you do $team::count["-1"] = 0; it actually stores it "correctly" as $team::count-1 = 0;
I was always aware of the fact that tribes did that to arrays, i think andrew had actually pointed that out to me a long time ago. What i noticed though was the fact that an eventTeamChange would pass the floating point -1.000000 for obs but a call to client::getteam(%id) for that same player would return just -1 causing two $team::count variables to be created and confusing the script generating all these little bugs.
My question is, i dont know if this is new or related to the latest zadmin mods or something? I noticed in your pack that you dont display obs counts so you might not have noticed it...
Can anyone confirm that they cannot see players in obs in stathud?