Raised This Month: $32 Target: $400
 8% 

[CS:GO] Error 033: array must be indexed variable


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ahimel
New Member
Join Date: Apr 2018
Old 04-19-2018 , 11:53   [CS:GO] Error 033: array must be indexed variable
Reply With Quote #1

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");	
		
	}
Ahimel is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-19-2018 , 20:40   Re: [CS:GO] Error 033: array must be indexed variable
Reply With Quote #2

For issues with SourceMod, you'll need to post in the SourceMod section of the forum. This is the AMX Mod X section.
__________________
fysiks is online now
Reply



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 01:55.


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