mysql.inc mysql_function_query [help]
#1

I've been getting argument errors on this line.

(62) : error 035: argument type mismatch (argument 1)

Код:
62| mysql_function_query(dbinfo, "SELECT * FROM players WHERE playername = 'name'", true);
I'm not understanding how to use mysql_function_query and how to use callbacks. Any additional help and explanations help is appreciated.
Reply
#2

The first argument is the handle. The handle is returned by mysql_connect
e.g:
pawn Код:
ConnectionHandle = mysql_connect(mysql_host,mysql_user,mysql_database,mysql_password);
Reply
#3

How bout the arguments on mysql_function_query. Can I get some clarification on each?
Reply
#4

mysql_function_query( connectionHandle, query[], bool:cache, callback[], format[], {Float,_}:... )

Most of it is self-explanatory

  • connectionHandle - I just told you above
  • query - self-explanatory
  • cache - Again, self-explanatory (it's a bool - it can be either true or false)
  • callback - The callback you wish to call (or you can use "" if you don't want to call any)
  • format - Self-explanatory (you use this with callbacks)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)