AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Problem (https://forums.alliedmods.net/showthread.php?t=189484)

lapiuxxx 07-07-2012 15:40

Problem
 
I've got 2 servers, and i got sms system which i'm using on both of them/ servers: public/jailbreak
So, on public system works perfect with no errors, and i made system for jailbreak from same .sma, just changed sql, and it have some errors on jailbreak:
22:30:27 [AMXX] Uzkrauti 26 adminai is duomenu bazes(It says that 26 admins been loaded)
22:30:27 L 07/07/2012 - 22:38:23: [AMXX] Displaying debug trace (plugin "sms.amxx")
22:30:27 L 07/07/2012 - 22:38:23: [AMXX] Run time error 4: index out of bounds
22:30:27 L 07/07/2012 - 22:38:23: [AMXX] [0] sms.sma::getAccess (line 329)
22:30:27 L 07/07/2012 - 22:38:23: [AMXX] [1] sms.sma::accessUser (line 450)
22:30:27 L 07/07/2012 - 22:38:23: [AMXX] [2] sms.sma::cmdReload (line 294)
LINES:
329:
if (AuthData[c - 1] == '.') /* check if this is not a xxx.xxx. format */
450:
new result = getAccess(id, username, userauthid, userip, password)
AND 294:
accessUser(pv, name)

So, can anyone help? Sorry 4 bad english

nikhilgupta345 07-15-2012 19:01

Re: Problem
 
You need to show more of the code for us to help you. The only thing I can tell from what you have posted is that AuthData[c-1] is out of bounds, meaning that c is either less than or equal to 0 or more than the size of AuthData.


All times are GMT -4. The time now is 15:11.

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