Raised This Month: $ Target: $400
 0% 

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


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 04:37.


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