Raised This Month: $ Target: $400
 0% 

imessage_in_die Run time error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sb123
Senior Member
Join Date: Jan 2007
Old 02-03-2007 , 10:48   imessage_in_die Run time error
Reply With Quote #1

L 02/02/2007 - 03:47:05: [AMXX] Run time error 4 (plugin "imessage_in_die.amxx") -debug not enabled!
L 02/02/2007 - 03:47:05: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

http://w3arcade.net/imessage_in_die.sma

ths...
sb123 is offline
Send a message via ICQ to sb123 Send a message via MSN to sb123 Send a message via Yahoo to sb123
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 02-03-2007 , 11:36   Re: imessage_in_die Run time error
Reply With Quote #2

Add debug.
[ --<-@ ] Black Rose is offline
sb123
Senior Member
Join Date: Jan 2007
Old 02-04-2007 , 02:12   Re: imessage_in_die Run time error
Reply With Quote #3

Not.....
sb123 is offline
Send a message via ICQ to sb123 Send a message via MSN to sb123 Send a message via Yahoo to sb123
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 02-04-2007 , 04:33   Re: imessage_in_die Run time error
Reply With Quote #4

Quote:
Originally Posted by sb123 View Post
Not.....
then noone will help you
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-04-2007 , 04:39   Re: imessage_in_die Run time error
Reply With Quote #5

Run time error 4 = index out of bounds.

Code:
public infoMessage() {     if (g_Current >= g_MessagesNum)         g_Current = 0             set_hudmessage(random_num(0,255), random_num(0,255), random_num(0,255), X_POS, Y_POS, 2, 0.5, HOLD_TIME, 0.1, 0.7, 2)     get_players(g_players,num,"bc")     for (new i=0; i<num; i++){         show_hudmessage(g_players[i], "%s", g_Messages[g_Current])         client_print(g_players[i], print_console, "%s", g_Messages[g_Current])         ++g_Current     }     new Float:freq_im = get_cvar_float("amx_freq_imessage")     if (freq_im > 0.0)         set_task(freq_im, "infoMessage", 12345) }

++g_Current should be outside of the loop. So it would become:

Code:
public infoMessage() {     if (g_Current >= g_MessagesNum)         g_Current = 0             set_hudmessage(random_num(0,255), random_num(0,255), random_num(0,255), X_POS, Y_POS, 2, 0.5, HOLD_TIME, 0.1, 0.7, 2)     get_players(g_players,num,"bc")     for (new i=0; i<num; i++){         show_hudmessage(g_players[i], "%s", g_Messages[g_Current])         client_print(g_players[i], print_console, "%s", g_Messages[g_Current])     }     ++g_Current     new Float:freq_im = get_cvar_float("amx_freq_imessage")     if (freq_im > 0.0)         set_task(freq_im, "infoMessage", 12345) }
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
sb123
Senior Member
Join Date: Jan 2007
Old 02-04-2007 , 11:05   Re: imessage_in_die Run time error
Reply With Quote #6

I appreciate your generous help.
sb123 is offline
Send a message via ICQ to sb123 Send a message via MSN to sb123 Send a message via Yahoo to sb123
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 00:38.


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