Raised This Month: $ Target: $400
 0% 

Hook_deathmessage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 06-07-2010 , 15:10   Hook_deathmessage
Reply With Quote #1

PHP Code:
public Hook_Deathmessage()
{
 if( 
get_pcvar_numgDrShopOn ) == )
 {
  new 
id read_data);
  
HasHealthid ] = false;
 }
 return 
PLUGIN_CONTINUE;

Error:
Quote:
L 06/07/2010 - 12:56:16: [AMXX] Run time error 4: index out of bounds
L 06/07/2010 - 12:56:16: [AMXX] [0] drshop.sma::Hook_Deathmessage (line 443)
edgaras85 is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 06-07-2010 , 16:05   Re: Hook_deathmessage
Reply With Quote #2

What is your declaration for HasHealth[]? Also, please show us your register_event for the DeathMsg.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 06-07-2010 , 16:23   Re: Hook_deathmessage
Reply With Quote #3

PHP Code:
register_event"DeathMsg""Hook_Deathmessage""a"); 
HasHealth is for that player can buy Health again after death
edgaras85 is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 06-07-2010 , 16:28   Re: Hook_deathmessage
Reply With Quote #4

Your HasHealth variable declaration probably has fewer than 33 cells. You must make it like so:

Code:
new bool:HasHealth[33]
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 06-07-2010 , 16:31   Re: Hook_deathmessage
Reply With Quote #5

I done like this
PHP Code:
new HasHealth64 
edgaras85 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 05:24.


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