MySQL Query failing with format.
#1

Hi,

I am having some problems since I just changed my MySQL Plugin to the R7 and am having problems with the query.

So, here is the code ( the mysql_query is line 467):
pawn Код:
format(query, sizeof(query),"INSERT INTO playerdb (username,password,score,money,factionid,deaths) VALUES ('%s',md5('%s'),%d,%d,%d,%d)",playerdb[playerid][username],inputtext,1,5000,0,0);
        mysql_query(query);
And this is what I get from the compiler

Код:
.pwn(467) : error 017: undefined symbol "mysql_query"
I am using BlueG's R7 MySQL Plugin, tried to look up some help within the thread, but it was no help for me.
Reply
#2

Probably wrong inc file.
Reply
#3

Checked both inc files, they are the same. Also, the plguin is the correct version.

I am pretty sure it's something wrong on the script. Just dont know what.
Reply
#4

Did you even bother searching? "Undefined symbol mysql_query" is bound to give you a ton of results.
Reply
#5

Blueg's MySQL plugin version R7 doesn't have mysql_query.
It has mysql_function_query.
There's a tutorial for R7 --> https://sampforum.blast.hk/showthread.php?tid=337810
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)