mysql code
#1

Hello,

Someone can help me to ensure that this code can work with the BlueG Mysql plugin ?
This is the code:

Код:
public MySQLUpdateBuild(query[], sqlplayerid) // by Luk0r
{
	new querylen = strlen(query);
	//new querymax = sizeof(query);
	new querymax = MAX_STRING;
	if (querylen < 1) format(query, querymax, "UPDATE players SET ");
	else if (querymax-querylen < 50) // make sure we're being safe here
	{
		// query is too large, send this one and reset
		new whereclause[32];
		format(whereclause, sizeof(whereclause), " WHERE id=%d", sqlplayerid);
		strcat(query, whereclause, querymax);
                mysql_query(query); <-- This line
		format(query, querymax, "UPDATE players SET ");
	}
	else if (strfind(query, "=", true) != -1) strcat(query, ",", MAX_STRING);
	return 1;
}
I start but I get this error: error 035: argument type mismatch (argument 1)

Regards.
Reply


Messages In This Thread
mysql code - by jcvag44800 - 06.05.2014, 22:33
Re: mysql code - by Aerotactics - 06.05.2014, 23:56
Re: mysql code - by jcvag44800 - 07.05.2014, 07:59
Re: mysql code - by Roel - 07.05.2014, 08:56
Re : mysql code - by jcvag44800 - 07.05.2014, 08:59
Re: mysql code - by Roel - 07.05.2014, 09:03
Re : mysql code - by jcvag44800 - 07.05.2014, 09:15
Re: mysql code - by iZN - 07.05.2014, 09:17
Re: mysql code - by Roel - 07.05.2014, 09:23
Re: mysql code - by JoeMercury - 07.05.2014, 09:54

Forum Jump:


Users browsing this thread: 1 Guest(s)