msqyl error
#1

i have a error mysql compiling...
Код:
C:\Users\User\Documents\ValoareCuK\gamemodes\rworld.pwn(48444) : error 017: undefined symbol "mysql_store_result"
C:\Users\User\Documents\ValoareCuK\gamemodes\rworld.pwn(48445) : error 017: undefined symbol "mysql_num_rows"
C:\Users\User\Documents\ValoareCuK\gamemodes\rworld.pwn(48447) : error 017: undefined symbol "mysql_free_result"
C:\Users\User\Documents\ValoareCuK\gamemodes\rworld.pwn(48454) : error 017: undefined symbol "mysql_fetch_row"
C:\Users\User\Documents\ValoareCuK\gamemodes\rworld.pwn(48456) : error 017: undefined symbol "mysql_free_result"
C:\Users\User\Documents\ValoareCuK\gamemodes\rworld.pwn(48467) : error 017: undefined symbol "mysql_store_result"
C:\Users\User\Documents\ValoareCuK\gamemodes\rworld.pwn(48468) : error 017: undefined symbol "mysql_num_rows"
C:\Users\User\Documents\ValoareCuK\gamemodes\rworld.pwn(48470) : error 017: undefined symbol "mysql_free_result"
C:\Users\User\Documents\ValoareCuK\gamemodes\rworld.pwn(48477) : error 017: undefined symbol "mysql_fetch_row"
C:\Users\User\Documents\ValoareCuK\gamemodes\rworld.pwn(48479) : error 017: undefined symbol "mysql_free_result"
Hear :
Код:
stock MySQLCheckTag(TagName[])
{
	new query[128], escstr[30];
	mysql_real_escape_string(TagName, escstr);
	format(query, sizeof(query), "SELECT `ID` FROM clans WHERE `ClanTAG` = '%s'", escstr);
	mysql_query(handle, query);
	mysql_store_result();
	if (mysql_num_rows() == 0)
	{
	    mysql_free_result();
		return 0;
	}
	else
	{
		new strid[32];
		new intid;
		mysql_fetch_row(strid);
		intid = strval(strid);
	    mysql_free_result();
		return intid;
	}
}

stock MySQLCheckClan(ClanName[])
{
	new query[128], escstr[30];
	mysql_real_escape_string(ClanName, escstr);
	format(query, sizeof(query), "SELECT `ID` FROM clans WHERE `ClanName` = '%s'", escstr);
	mysql_query(handle, query);
	mysql_store_result();
	if (mysql_num_rows() == 0)
	{
	    mysql_free_result();
		return 0;
	}
	else
	{
		new strid[32];
		new intid;
		mysql_fetch_row(strid);
		intid = strval(strid);
	    mysql_free_result();
		return intid;
	}
}
I use mysql r39-5
Reply


Messages In This Thread
msqyl error - by Jimmi - 29.05.2016, 09:50
Re: msqyl error - by luke49 - 29.05.2016, 10:01
Re: msqyl error - by Jimmi - 29.05.2016, 10:03
Re: msqyl error - by luke49 - 29.05.2016, 10:10
Re: msqyl error - by Jimmi - 29.05.2016, 10:10
Re: msqyl error - by d3ll - 29.05.2016, 10:12
Re: msqyl error - by luke49 - 29.05.2016, 10:14
Re: msqyl error - by DRIFT_HUNTER - 29.05.2016, 11:57

Forum Jump:


Users browsing this thread: 1 Guest(s)