How to convert this to MySQL r39-6>?
#1

Hi all,

How to convert this to MySQL R39-6?
\
Quote:

public MySQLCheckClan(sqlclanname[])
{
new query[128];
new escstr[MAX_PLAYER_NAME];
mysql_real_escape_string(sqlclanname, escstr);
format(query, sizeof(query), "SELECT `ID` FROM clans WHERE `Tag` = '%s'", escstr);
mysql_query(SQL,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;
}
}

Reply
#2

UP......??
Reply
#3

Why don't you use r41-2?
Reply
#4

Romanian SRL hosting not support R40+...

Only < 39-6...
Reply
#5

Quote:
Originally Posted by Belengher
Посмотреть сообщение
Romanian SRL hosting not support R40+...

Only < 39-6...
Then I recommend you buying from gazduirejocuri.ro or zeroping.
Reply
#6

Код:
public MySQLCheckClan(sqlclanname[])
{
	new query[128];
	new escstr[MAX_PLAYER_NAME];
	new rows, fields;
	mysql_real_escape_string(sqlclanname, escstr, SQL, MAX_PLAYER_NAME);
	format(query, sizeof(query), "SELECT `ID` FROM clans WHERE `Tag` = '%s'", escstr);
	mysql_query(SQL, query);
	
	cache_get_data(rows, fields);

	if (!rows)
	{
		return 0;
	}
	else
	{
		new intid = cache_get_row_int(0, 0);
		return intid;
	}
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)