Raised This Month: $ Target: $400
 0% 

[BUG] set_user_hitzones


  
 
 
Thread Tools Display Modes
Author Message
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 08-11-2005 , 15:55   [BUG] set_user_hitzones
#1

set_user_hitzones doesn't work properly.

Since I'm guessing there's no fix for this:
http://forums.alliedmods.net/showthread.php?t=16411
I decided to bring this into bug reports.

There's even a comment in the funcwiki for this, and it would be nice to see blanks working again. I also need this for one of my plugins.

I couldn't get it to function properly in 1.50 or 1.01.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 08-11-2005 , 18:01  
#2

Ouch. This is like the zillionth time.

Please post a short test plugin here so I can take a look at it and see if it works or not...
Johnny got his gun is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 08-11-2005 , 18:18  
#3

Sorry, I didn't see any recent ones.

http://forums.alliedmods.net/showthread.php?t=16411

There's like 10 test plugins in that thread.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 08-12-2005 , 05:44  
#4

Ok I wrote yet another hitzones testing plugin. I'm going to refer to this one from now on. If you claim something doesn't work, implement it to this plugin and give it to me, or upload here in bug reports...

This plugin is made for CS. Each round it randomizes which hitzone will be active. So at the start of a round the hitzone is set on all players.
A chat message tells what hitzone is activated at each time.
Attached Files
File Type: sma Get Plugin or Get Source (hitzones.sma - 911 views - 2.2 KB)
Johnny got his gun is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 08-12-2005 , 11:23  
#5

Ok but one thing, wouldn't it be more effective to check

Code:
    if (!get_user_hitzones(0, 0, g_hitzones)) {         client_print(0, print_chat, "Failed setting hitzones!")         server_print("Failed setting hitzones!")     }

Rather than

Code:
    if (!set_user_hitzones(0, 0, g_hitzones)) {         client_print(0, print_chat, "Failed setting hitzones!")         server_print("Failed setting hitzones!")     }

I'm pretty sure it's executing correctly, and messing with the variables, it's just that the fun module is bugged for that particular function.

Either way, I'm compiling it now and putting it on my server to see.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
BAILOPAN
Join Date: Jan 2004
Old 08-17-2005 , 14:50  
#6

Locking this. Continue in scripting section or PM me to unlock.
__________________
egg
BAILOPAN is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode