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=612434)
error 035: argument type mismatch (argument 3) -
xXtremeXx - 17.07.2016
Hello, can someone tell me how to fix these errors:-
PHP код:
D:\roleplay\[GAMEMODE]\filterscripts\PhoneSystem.pwn(75) : error 017: undefined symbol "mysql_log"
D:\roleplay\[GAMEMODE]\filterscripts\PhoneSystem.pwn(2103) : error 035: argument type mismatch (argument 3)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Here's the code:-
PHP код:
public OnFilterScriptInit()
{
mysql_log(LOG_ERROR | LOG_WARNING); //>>>>>>>>>>>>>>>>LINE 75
mysql = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_DATABASE, MYSQL_PASSWORD);
if(mysql_errno() != 0)
{
PHP код:
new query[180];
mysql_format(mysql, query, sizeof(query), "SELECT * FROM `mobile`", "LoadNumbers", "i", playerid); >>>>>>>line 2103
return 1;
}
Re: error 035: argument type mismatch (argument 3) -
K0P - 17.07.2016
Here you go:
Код:
format(query, sizeof(query), "SELECT * FROM `mobile`", LoadNumbers, i, playerid);
Re: error 035: argument type mismatch (argument 3) -
xXtremeXx - 17.07.2016
Thanks @K0P but I still get some errors:-
PHP код:
D:\roleplay\[GAMEMODE]\filterscripts\PhoneSystem.pwn(75) : error 017: undefined symbol "mysql_log"
D:\roleplay\[GAMEMODE]\filterscripts\PhoneSystem.pwn(2104) : error 076: syntax error in the expression, or invalid function call
D:\IM UUSING IT\[GAMEMODE]\filterscripts\PhoneSystem.pwn(77) : warning 204: symbol is assigned a value that is never used: "mysql"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Kindly tell me how to fix this.