SA-MP Forums Archive
2 Tag mismatch errors. - 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: 2 Tag mismatch errors. (/showthread.php?tid=660922)



2 Tag mismatch errors. - Longover - 17.11.2018

Hi!
I have the error tag mismatch in 2 lines:

Code:
mysql[400] = mysql_connect(host, user, db, pass);
if(mysql_errno(mysql[400]) == 0)
Variable:

Code:
new mysql[500];
I use the latest mysql.


Re: 2 Tag mismatch errors. - aristoffky - 17.11.2018

I don't really understand what you want to do,

so you create a array of the 500 size and set the 400th slot to the mysql_connect?

maybe you shouldn't set a array to the mysql_connect and just use a new handle; ?


Re: 2 Tag mismatch errors. - Banditul18 - 17.11.2018

Quote:
Originally Posted by aristoffky
View Post
I don't really understand what you want to do,

so you create a array of the 500 size and set the 400th slot to the mysql_connect?

maybe you shouldn't set a array to the mysql_connect and just use a new handle; ?
This^^^

And also you need the MySQL tag to the variable.
new MySQL: handle;


Re: 2 Tag mismatch errors. - aristoffky - 17.11.2018

Quote:
Originally Posted by Banditul18
View Post
This^^^

And also you need the MySQL tag to the variable.
new MySQL: handle;
yes and the tag, I don't use MySQL often ^_^


Re: 2 Tag mismatch errors. - Longover - 17.11.2018

Quote:
Originally Posted by aristoffky
View Post
yes and the tag, I don't use MySQL often ^_^
Code:
error 035: argument type mismatch (argument 3)
line:

Code:
cache_get_value_index(rows, fields, gsql);



Re: 2 Tag mismatch errors. - Banditul18 - 17.11.2018

Quote:
Originally Posted by Longover
View Post
Code:
error 035: argument type mismatch (argument 3)
line:

Code:
cache_get_value_index(rows, fields, gsql);
https://sampwiki.blast.hk/wiki/MySQL/R4...et_value_index
The last parameter needs to be other varible to hold the result from the function. It is not the connection handle varible