Raised This Month: $ Target: $400
 0% 

[CORE] set_task in 1.50 acting different than in 1.0(1)!!!


  
 
 
Thread Tools Display Modes
Author Message
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 08-14-2005 , 13:37   [CORE] set_task in 1.50 acting different than in 1.0(1)!!!
#1

hey guys!

i created a plugin that drops player's grenades to the ground
when he dies and use this code:

Code:
new us_nades = dod_get_user_ammo(param[0],DODW_HANDGRENADE) set_task(0.1,"create_handgrenade",0,param,1,"a",us_nades)

in amxx 1.0(1) the function "create_handrenade" is called as often
as the player had grenades when he died, while in amxx 1.50
the function is called 1 more time than the amount of grenades a player had!

so if a player had 2 grenades, now 3 are dropped!

please let me know if it's meant like that, so i'll have to add an amxx version check
to the plugin and create the task according to it, or if it's a bug!
FeuerSturm is offline
BAILOPAN
Join Date: Jan 2004
Old 08-17-2005 , 14:16  
#2

This has been fixed in CVS. Thanks for the report!
__________________
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 06:34.


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