Error with mysql_query
#1

Hello. I have a problem with mysql_query. And error is (40) : error 035: argument type mismatch (argument 1). 40 line is mysql_query(query); And I don't know problem with that. Can you explain it to me ?

Код:
public OnPlayerDisconnect(playerid)
{
new Float:x, Float:y, Float:z, query[250], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerPos(playerid, x, y, z);
format(query, sizeof(query), "UPDATE `positions` SET `x`=%f AND `y`=%f AND `z`=%f WHERE `name`='%s'", x, y, z, name);
mysql_query(query);
return 1;
}
Reply


Messages In This Thread
Error with mysql_query - by Ciklopaz - 18.09.2017, 19:33
Re: Error with mysql_query - by Kane - 18.09.2017, 19:38
Re: Error with mysql_query - by Ciklopaz - 18.09.2017, 19:50
Re: Error with mysql_query - by Kane - 18.09.2017, 20:16
Re: Error with mysql_query - by Kaperstone - 18.09.2017, 20:20
Re: Error with mysql_query - by raydx - 19.09.2017, 07:52
Re: Error with mysql_query - by Kane - 19.09.2017, 08:21
Re: Error with mysql_query - by Ciklopaz - 19.09.2017, 17:32

Forum Jump:


Users browsing this thread: 1 Guest(s)