SA-MP Forums Archive
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(handleQuery""""); 
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",DayMonthYearHourMinuteSecond



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(DatabaseStringsizeof String"INSERT INTO `databasename` ..."playeridnamesetc);
mysql_tquery(DatabaseString"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",DayMonthYearHourMinuteSecond
Won't work, you need to format a string for that