Help with MySQL
#1

Hi.

I use a_mysql include and mysql.dll plugin by BlueG (R7 version) and I would know two things.

First, how to launch a query, and also how to optimize my queries.

Thank for the one who'll answer.
Reply
#2

Reply
#3

https://sampforum.blast.hk/showthread.php?tid=337810

Quote:
Originally Posted by Crazydriver
Посмотреть сообщение
That's not for R7.
Reply
#4

I've done queries based on this model

PHP код:
new idx;
while(
idx sizeof(InfoMaison))
{
   
format(query1024"ALTER TABLE Maisons WHERE `id`='%d' MODIFY `xEntree` DOUBLE NOT NULL '%f'"idxInfoMaison[idx][xEntree]);
   
mysql_query(query);

But I got "error 035: argument type mismatch (argument 1)" on the line mysql_query

Someone has an idea (#BigNoobInSQL)
Reply
#5

It seems your version of a_mysql.inc is not for R7 but one of the latest version which mysql_query uses connection handle is first argument and the query (array) is the second argument.
Reply
#6

Do you have the version which mysql_query doesn't use handles ?

It's quite boring because I just use one MySQL connection...
Reply
#7

I got the same error when i started to script my GM but when i downgraded it to Mysql R6 it worked try using Mysql R6 package
Reply
#8

Thanks, I'll test now and i'll edit this post to tell you what happened

EDIT : Same with R6.

In the include, the native is

PHP код:
native mysql_query(query[],resultid = (-1),extraid = (-1),connectionHandle 1); 
So the query is called first.
Reply
#9

You get these error at compiling or after starting your server.exe and if so post your Server.cfg file here
Reply
#10

Just while compiling
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)