Raised This Month: $ Target: $400
 0% 

Array Index Error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 04-22-2012 , 13:56   Array Index Error
Reply With Quote #1

PHP Code:
enum Substatus 
    
Status,Time,Queue,Nickname,ID
};
new 
g_sub[32][Substatus][32];
new 
g_subindex[32][32];

        else if (
is(text,".sub")) {
            if (
g_administrate == 0) {
                new 
user[32]
                
getuser_id(user,id);
(
785)Line            if (!g_sub[g_subindex[g_PlayerIDs[id]]][Queue]) {
                    
g_subs++
(
787)Line            g_sub[g_subs][Queue]=g_subs;
(
788)Line            g_sub[g_subs][ID]=g_PlayerIDs[id];
                    
g_sub[g_subs][Nickname]=g_user[g_PlayerIDs[id]][Username];
(
790)Line            g_subindex[g_PlayerIDs[id]]=g_subs;
                    
msg("[Sub][%s] You are now on the queue list of Subs.",user);
                    
msg("[Sub][%s] Queue Position (%d/%d).",user,g_sub[g_subs][Queue],g_subs);
(
793)Line            if (g_sub[g_subs][Queue] == 1) {
                        
g_sub[g_subs][Status]="Searching..."
                        
//sub.start
                    
}
                    else {
                        
g_sub[g_subs][Status]="Pending..."
                    
}
                }
                else { 
msg("[Sub][%s] You are allready on the Sub Queue. Please Wait...",user); }
            }
        } 
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

D:\Projects\Amxmodx\Gather\addons\amxmodx\scr ipting\Gather.sma(785) : error 033: array must be indexed (variable "g_subindex")
D:\Projects\Amxmodx\Gather\addons\amxmodx\scr ipting\Gather.sma(787) : error 033: array must be indexed (variable "g_sub")
D:\Projects\Amxmodx\Gather\addons\amxmodx\scr ipting\Gather.sma(788) : error 033: array must be indexed (variable "g_sub")
D:\Projects\Amxmodx\Gather\addons\amxmodx\scr ipting\Gather.sma(790) : error 033: array must be indexed (variable "g_subindex")
D:\Projects\Amxmodx\Gather\addons\amxmodx\scr ipting\Gather.sma(793) : error 033: array must be indexed (variable "g_sub")
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))

Last edited by ProIcons; 04-22-2012 at 14:30.
ProIcons is offline
 


Thread Tools
Display Modes

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 07:51.


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