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

Array must be indexed


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
nmk
BANNED
Join Date: Mar 2009
Old 03-12-2009 , 09:57   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:
basebans.sp(240) : error 033: array must be indexed (variable "authid")
basebans.sp(281) : error 033: array must be indexed (variable "arg")

Script:

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

and line 281:

if (strncmp(arg, "STEAM_0:", 8) == 0 || 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

Last edited by YamiKaitou; 03-12-2009 at 10:07.
nmk 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 19:42.


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