Raised This Month: $51 Target: $400
 12% 

Array must be indexed


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
nmk
BANNED
Join Date: Mar 2009
Old 03-12-2009 , 10:08   Array must be indexed
#1

Hello, I'm trying to edit basebans.sp file, because I have a big problem with cracked server bans New crack changes pending id to steam_0:0:0 so I can ban players only in rcon with sm_banip command.

Compiler error:
Quote:
basebans.sp(240) : error 033: array must be indexed (variable "authid")
basebans.sp(281) : error 033: array must be indexed (variable "arg")
Script:

PHP Code:
if (strncmp(authid"STEAM_0:"8) != || authid == "STEAM_0:0:0")
{
        
ReplyToCommand(client"[SM] %t""Invalid SteamID specified");
        return 
Plugin_Handled;

and line 281:

PHP Code:
if (strncmp(arg"STEAM_0:"8) == || arg != "STEAM_0:0:0")
{
        
ban_flags |= BANFLAG_AUTHID;
}
else
{
        
ban_flags |= BANFLAG_IP;

I dont understand where is problem, because I worked only wih php, and dont know what is this programming language.

Please help
nmk is offline
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 03-12-2009 , 17:30   Re: Array must be indexed
#2

Whoops, didn't see that first sentence of the post until after I posted. -_-

Seriously, TF2 is $20, your time is worth more than messing around with this, I hope?
__________________

Last edited by pheadxdll; 03-12-2009 at 17:39.
pheadxdll is offline
recon0
Veteran Member
Join Date: Sep 2007
Location: US
Old 03-12-2009 , 18:28   Re: Array must be indexed
#3

No steam, no support.
__________________
recon0 is offline
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
Old 03-12-2009 , 19:03   Re: Array must be indexed
#4

No steam, no support.
__________________
msleeper is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 03-13-2009 , 07:59   Re: Array must be indexed
#5

Anyway @ non.steam. You could have problems in the future.
PHP Code:
if (strncmp(authid"STEAM_0:"8) != || authid == "STEAM_0:0:0"
->
PHP Code:
if (strncmp(authid"STEAM_0:"8) != || strncmp(authid"STEAM_0:0:0") != 
__________________

anakin_cstrike is offline
psychonic

BAFFLED
Join Date: May 2008
Old 03-13-2009 , 08:48   Re: Array must be indexed
#6

No steam, no support.
psychonic is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 03-13-2009 , 10:51   Re: Array must be indexed
#7

As the others have said, we don't support no-steam users here. Thread locked.
bl4nk is offline
Closed Thread



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 20:31.


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