SA-MP Forums Archive
Problem with mysql - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with mysql (/showthread.php?tid=614088)



Problem with mysql - ActionTanki91 - 04.08.2016

I have a problem with mysql, line : mysql_query

Код:
public OnPlayerConnect(playerid)
{
	new query[126], pName[MAX_PLAYER_NAME];
	GetPlayerName(playerid, pName, sizeof(pName));
	format(query, sizeof(query), "SELECT * From accounts WHERE name = '%s'", pName);
	mysql_query(query);
	mysql_store_result();
Код:
error 035: argument type mismatch (argument 1)



Re: Problem with mysql - F1N4L - 04.08.2016

Код:
mysql_query(YourConnectionDB, query);



Re: Problem with mysql - ActionTanki91 - 04.08.2016

ok thanks guys