Problem MySQL
#1

Hi, SA-MP!

Soon I see erroarea in mysql_log! I do not know how to solve.

error:

Quote:

mysql_format ERROR no value for specifier "%d" available

Reply
#2

The message is pretty clear. You didn't specify what %d is.

Example:
PHP код:
new value random(1000); 
PHP код:
mysql_format(connectionquerysizeof query"UPDATE table SET field=%d"); // Incorrect
mysql_tquery(connectionquery); 
PHP код:
mysql_format(connectionquerysizeof query"UPDATE table SET field=%d"value); // Correct
mysql_tquery(connectionquery); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)