MYSQL mysql_tquery warnings - 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: MYSQL mysql_tquery warnings (
/showthread.php?tid=542258)
MYSQL mysql_tquery warnings -
jamjamnewbie - 18.10.2014
Hi, I've been getting warnings
Код:
E:\test samp serber\gamemodes\dmxtreme.pwn(566) : warning 202: number of arguments does not match definition
E:\test samp serber\gamemodes\dmxtreme.pwn(566) : warning 202: number of arguments does not match definition
E:\test samp serber\gamemodes\dmxtreme.pwn(621) : warning 202: number of arguments does not match definition
E:\test samp serber\gamemodes\dmxtreme.pwn(621) : warning 202: number of arguments does not match definition
E:\test samp serber\gamemodes\dmxtreme.pwn(658) : warning 202: number of arguments does not match definition
E:\test samp serber\gamemodes\dmxtreme.pwn(658) : warning 202: number of arguments does not match definition
E:\test samp serber\gamemodes\dmxtreme.pwn(711) : warning 202: number of arguments does not match definition
E:\test samp serber\gamemodes\dmxtreme.pwn(711) : warning 202: number of arguments does not match definition
E:\test samp serber\gamemodes\dmxtreme.pwn(714) : warning 202: number of arguments does not match definition
E:\test samp serber\gamemodes\dmxtreme.pwn(714) : warning 202: number of arguments does not match definition
they are nearly identical, the difference is only the query from mysql_format, here is one
Код:
mysql_format(mysql, query, sizeof(query), "UPDATE `users` SET `IsBanned` = 1 WHERE `Name` = '%s'", GetName(targetid)); //line 713
mysql_tquery(mysql, query); //line 714
from what i know, only the connection handle and the query are important, the rest are optional...
Re: MYSQL mysql_tquery warnings -
nemesis- - 18.10.2014
Are your includes up to date? That'd be my guess. Otherwise per the wiki your use of the functions are correct.
Re: MYSQL mysql_tquery warnings -
jamjamnewbie - 18.10.2014
Thanks for pointing out it was not up to date, previously it was R33, and I installed R39-2 and gave no warnings and errors. Now fixed.