read data from events and hook 2 things
for example 1:
Code:
register_event( "SendAudio", "t_win", "a", "2=%!MRAD_terwin" );Code:
register_event( "SendAudio", "win", "a", "2=%!MRAD_terwin", "2=%!MRAD_ctwin" );read_data( 2 ) ? |
Re: read data from events and hook 2 things
Why don't you try it and find out for yourself?
|
Re: read data from events and hook 2 things
Determine whether read_data(2) is 1 or 2.. via switch statement. That's it all.
|
Re: read data from events and hook 2 things
Quote:
Code:
/* Plugin generated by AMXX-Studio */now when i try to check like that, not works, i know its because '%' in %!MRAD_terwin" and %!MRAD_cterwin", but i not know what to do to check , can you help me please ? Code:
/* Plugin generated by AMXX-Studio */ |
Re: read data from events and hook 2 things
Not sure if the % is or isn't causing an issue here. Try checking only the part of the string with the team name:
PHP Code:
|
Re: read data from events and hook 2 things
Quote:
Code:
#include <amxmodx> |
| All times are GMT -4. The time now is 17:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.