SA-MP Forums Archive
error 035: argument type mismatch (argument 1) - 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 1) (/showthread.php?tid=565875)



error 035: argument type mismatch (argument 1) - lulo356 - 01.03.2015

Whats wrong?,

pawn Код:
mysql_function_query(Query);



Re: error 035: argument type mismatch (argument 1) - maramizo - 01.03.2015

pawn Код:
mysql_function_query( connectionHandle, query[], bool:cache, callback[], format[], {Float,_}:... );
BlueG's examples:
pawn Код:
mysql_function_query(connectionHandle, "UPDATE `foo` SET `bar` = 1", false, "CustomResponse", "dsf", 1337, "string", 1.5634);

public CustomResponse(integer, string[], Float:float)
{
    printf("Query successful executed. Data: %d | %s | %f", integer, string, float);
    return 1;
}



Re: error 035: argument type mismatch (argument 1) - lulo356 - 01.03.2015

Quote:
Originally Posted by maramizo
Посмотреть сообщение
pawn Код:
mysql_function_query( connectionHandle, query[], bool:cache, callback[], format[], {Float,_}:... );
BlueG's examples:
pawn Код:
mysql_function_query(connectionHandle, "UPDATE `foo` SET `bar` = 1", false, "CustomResponse", "dsf", 1337, "string", 1.5634);

public CustomResponse(integer, string[], Float:float)
{
    printf("Query successful executed. Data: %d | %s | %f", integer, string, float);
    return 1;
}
Im new with MYSQL so if you can tell somting about it would be better.


Re: error 035: argument type mismatch (argument 1) - lulo356 - 02.03.2015

bump help please


Re: error 035: argument type mismatch (argument 1) - MikE1990 - 02.03.2015

i suggest you to use mysql_tquery
Код:
new connection = mysql_connect(.....)
new query[255];
mysql_format(connection,query,sizeof(query),"UPDATE `foo` SET `bar` = 1");
mysql_tquery(connection,query,"Test","s","Query successful");

public Test(message[])
{
    printf("%s",message);
}