error 035: argument type mismatch (argument 3 - 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: error 035: argument type mismatch (argument 3 (
/showthread.php?tid=660189)
error 035: argument type mismatch (argument 3 -
Zeus666 - 27.10.2018
PHP код:
new Query[128];
strcat(Query,"UPDATE `users` SET `Mesaj4` = '0' WHERE `Username` = '%s'", name);
mysql_tquery(handle, Query, "", "");
error 035: argument type mismatch (argument 3
why
Re: error 035: argument type mismatch (argument 3 -
v1k1nG - 27.10.2018
Use mysql_format, strcat doesn't format strings anyways
Re: error 035: argument type mismatch (argument 3 -
Zeus666 - 27.10.2018
Quote:
Originally Posted by v1k1nG
Use mysql_format, strcat doesn't format strings anyways
|
I will try, thanks.
Is this good?
PHP код:
pInfo[targetid][TM4] = "%02d/%02d/%d - %02d:%02d:%02d",Day, Month, Year, Hour, Minute, Second;
Re: error 035: argument type mismatch (argument 3 -
v1k1nG - 27.10.2018
PHP код:
new String[512]; // Be sure the size is enough for your query
mysql_format(Database, String, sizeof String, "INSERT INTO `databasename` ...", playerid, names, etc);
mysql_tquery(Database, String, "YourCallBack", "i", playerid);
And
Quote:
Originally Posted by Zeus666
I will try, thanks.
Is this good?
PHP код:
pInfo[targetid][TM4] = "%02d/%02d/%d - %02d:%02d:%02d",Day, Month, Year, Hour, Minute, Second;
|
Won't work, you need to format a string for that