Raised This Month: $51 Target: $400
 12% 

[SOLVED] read_data doesn't return value


Post New Thread Reply   
 
Thread Tools Display Modes
Vit_amin
Senior Member
Join Date: Dec 2015
Location: Russian Federation
Old 01-23-2016 , 20:26   Re: read_data doesn't return value
Reply With Quote #11

Thank you !!! Bugsy (method with iArgs work correctly)
Vit_amin is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 01-23-2016 , 20:36   Re: read_data doesn't return value
Reply With Quote #12

I also recommend replacing set_task() by calling the code in Timer_RoundEndCondition() directly, or call Timer_RoundEndCondition() without set_task(). Usually there's a reason that a delay is needed, but not sure what your reason is.

Try:
PHP Code:
//I know this isn't actual code for your plugin, but just showing that you can use the values directly.
server_print("Attacker: %d | Client: %d"attackerclient

//OR

new iArgs];
iArgs] = attacker;
iArgs] = client;
Timer_RoundEndConditioniArgs ); 
__________________

Last edited by Bugsy; 01-23-2016 at 20:37.
Bugsy is online now
Vit_amin
Senior Member
Join Date: Dec 2015
Location: Russian Federation
Old 01-23-2016 , 20:43   Re: read_data doesn't return value
Reply With Quote #13

Ok, i delete set_task and changed your call function.
Vit_amin is offline
Reply



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 01:04.


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