AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [CS:GO] Error 033: array must be indexed variable (https://forums.alliedmods.net/showthread.php?t=306937)

Ahimel 04-19-2018 11:53

[CS:GO] Error 033: array must be indexed variable
 
Hello guys, I am new and I tried to google my problems so far I am googling for 15 minutes for this solution. Thanks for help. Code:
Code:

char PrintResult(Handle query)
{

        char name[MAX_NAME_LENGTH];
        while (SQL_FetchRow(query))
        {
                SQL_FetchString(query, 0, name, sizeof(name));
                PrintToServer("Name \"%s\" was found.", name);
        }
        return name;
}


void CheckMap()
{
        char query[100];
        GetCurrentMap(mapName, sizeof(mapName)); 
        Format(query, sizeof(query), "SELECT map FROM `matches` WHERE `ip` = '%s'", NetIP);
        DBResultSet hQuery = SQL_Query(db, query);
        char level[20];
        Format(level,sizeof(level), mapName);
       
        if (PrintResult(hQuery) != level){
                ServerCommand("changelevel %s", PrintResult(hQuery));
                ServerCommand("mp_warmup_pausetimer 1");
                ServerCommand("mp_warmup_start");       
               
        }


fysiks 04-19-2018 20:40

Re: [CS:GO] Error 033: array must be indexed variable
 
For issues with SourceMod, you'll need to post in the SourceMod section of the forum. This is the AMX Mod X section.


All times are GMT -4. The time now is 04:37.

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