Some problem in my plugin (may be Two Dimensional Arrays problem)
PHP Code:
I think "delpass" There are some problems. Please help me to check for problems. Thank you! Also, please help me to check all two-dimensional array. Are there any problems? Thank you very much! |
Re: Some problem in my plugin (may be Two Dimensional Arrays problem)
I think that this serip is the problem, because you get the IP of everyone (with index 0) and I think this can't be don..
|
Re: Some problem in my plugin (may be Two Dimensional Arrays problem)
Quote:
can't understand code or whether op wants that or not but it should help to get all ips use a loop |
Re: Some problem in my plugin (may be Two Dimensional Arrays problem)
Quote:
Quote:
PHP Code:
The problem still exists. When I use amx_addpass added the player as a pass user, this is no problem. Players can enter the server. When I add multiple ip in the database, the problems will arise. Only the latest IP can pass. Also, when I delete an ip , all pass user's IP will be affect. So, I think "addpass" & "delpass" There are some problems. Please help me to check. Thank you!! |
Re: Some problem in my plugin (may be Two Dimensional Arrays problem)
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. |
Re: Some problem in my plugin (may be Two Dimensional Arrays problem)
Quote:
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. |
| All times are GMT -4. The time now is 21:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.