Raised This Month: $ Target: $400
 0% 

Stack implementation


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-17-2014 , 09:52   Re: Stack implementation
Reply With Quote #1

Did you try to debug at least? Like printing each cell of g_LastHP ?

Error states you pass an invalid handle, meaning g_LastHP[i] returns 0. Are you sure that "i" is not 0, because at 0 you don't create handle.
__________________
Arkshine is offline
Marcin RN
New Member
Join Date: Dec 2012
Old 12-17-2014 , 10:04   Re: Stack implementation
Reply With Quote #2

Quote:
Originally Posted by Arkshine View Post
Did you try to debug at least? Like printing each cell of g_LastHP ?

Error states you pass an invalid handle, meaning g_LastHP[i] returns 0. Are you sure that "i" is not 0, because at 0 you don't create handle.
Oops that's embarassing

Turns out that g_MaxPL was 0 from the start. Everything is fine now.

Sorry for bothering you and thanks for the help!
Marcin RN is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-17-2014 , 11:39   Re: Stack implementation
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
Did you try to debug at least? Like printing each cell of g_LastHP ?

Error states you pass an invalid handle, meaning g_LastHP[i] returns 0. Are you sure that "i" is not 0, because at 0 you don't create handle.
How a stack is different from an array ? Or better to ask what is a stack. I really have no ideea
__________________

Last edited by HamletEagle; 12-17-2014 at 11:40.
HamletEagle 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 15:26.


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