Raised This Month: $ Target: $400
 0% 

Returns from Fake Forwards


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 04-08-2009 , 18:54   Re: Returns from Fake Forwards
Reply With Quote #1

Print what g_forward1 and g_forward2 are. Also print what ExecuteForward returns.

Last edited by Emp`; 04-08-2009 at 18:57.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-08-2009 , 19:13   Re: Returns from Fake Forwards
Reply With Quote #2

Code:
#include <amxmodx> #include <amxmisc> new g_forward1; new g_forward2; public plugin_init() {     register_plugin("Forward Test Sender", "0.1", "Exolent");         register_clcmd("say /forward", "CmdForward"); } public plugin_natives() {     register_library("forward_test");         g_forward1 = CreateMultiForward("my_forward1", ET_IGNORE);     g_forward2 = CreateMultiForward("my_forward2", ET_STOP); } public CmdForward() {     log_amx("g_forward1 = %i", g_forward1);     log_amx("g_forward2 = %i", g_forward2);         static execute, ret;     for( new i = 0; i < 5; i++ )     {         execute = ExecuteForward(g_forward1, ret);         log_amx("Forward1 (#%i) (Execute: %i) (Return: %i)", i + 1, execute, ret);                 execute = ExecuteForward(g_forward2, ret);         log_amx("Forward2 (#%i) (Execute: %i) (Return: %i)", i + 1, execute, ret);     } }

Code:
L 04/08/2009 - 18:14:26: [forward_test_sender.amxx] g_forward1 = 0
L 04/08/2009 - 18:14:26: [forward_test_sender.amxx] g_forward2 = 2
L 04/08/2009 - 18:14:26: [forward_test_sender.amxx] Forward1 (#1) (Execute: 1) (Return: 0)
L 04/08/2009 - 18:14:26: [forward_test_sender.amxx] Forward2 (#1) (Execute: 1) (Return: 0)
L 04/08/2009 - 18:14:26: [forward_test_sender.amxx] Forward1 (#2) (Execute: 1) (Return: 0)
L 04/08/2009 - 18:14:26: [forward_test_sender.amxx] Forward2 (#2) (Execute: 1) (Return: 0)
L 04/08/2009 - 18:14:26: [forward_test_sender.amxx] Forward1 (#3) (Execute: 1) (Return: 0)
L 04/08/2009 - 18:14:26: [forward_test_sender.amxx] Forward2 (#3) (Execute: 1) (Return: 0)
L 04/08/2009 - 18:14:26: [forward_test_sender.amxx] Forward1 (#4) (Execute: 1) (Return: 0)
L 04/08/2009 - 18:14:26: [forward_test_sender.amxx] Forward2 (#4) (Execute: 1) (Return: 0)
L 04/08/2009 - 18:14:26: [forward_test_sender.amxx] Forward1 (#5) (Execute: 1) (Return: 0)
L 04/08/2009 - 18:14:26: [forward_test_sender.amxx] Forward2 (#5) (Execute: 1) (Return: 0)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 02:20.


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