error 035: argument type mismatch (argument 3)
#1

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;
} 
Reply
#2

Here you go:
Код:
mysql_log(LOG_ALL);
Код:
format(query, sizeof(query), "SELECT * FROM `mobile`", LoadNumbers, i, playerid);
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)