Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ryo89589
Member
Join Date: Aug 2011
Old 06-15-2014 , 01:10   Re: Some problem in my plugin (may be Two Dimensional Arrays problem)
Reply With Quote #1

Quote:
Originally Posted by Black Rose View Post
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.
Thank you for helping me to check!
1. I used an array with 65 indexes, because I think I should set a limit of 64.
2. I used IP, because I opened a non-steam server.
Therefore, not all players are using SteamID.
3. I do not know the built in functionality of AMXX, so I do not use it.
Please tell me the built in functionality of AMXX. Thank you.
4. I'm sorry, I can not understand. I was in "Two Dimensional Arrays" is very poor.
Please help me correct. Thank you. Thank you. Please.
ryo89589 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 21:17.


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