Raised This Month: $ Target: $400
 0% 

Some problem in my plugin (may be Two Dimensional Arrays problem)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 06-14-2014 , 23:27   Re: Some problem in my plugin (may be Two Dimensional Arrays problem)
Reply With Quote #5

What's the point of using an array with 65 indexes when you only use the first?
Why are you using IP instead of SteamID? Why are you not using the built in functionality of AMXX? That's just stupid.
Your use of charsmax() will defenitely cause index out of bounds errors to frequent your console window.
You're passing 0 as the len for copy() in delpass(), I'm not sure if that'll work. You don't even need that function to clear a string. A simple arrayset() or even nulling the first cell would be fine.
__________________

Last edited by Black Rose; 06-14-2014 at 23:30.
Black Rose is offline
 



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 21:17.


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