2 Tag mismatch errors.
#1

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

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; ?
Reply
#3

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;
Reply
#4

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 ^_^
Reply
#5

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);
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)