Mysql doesnt insert
#1

Код:
format(Query, sizeof(Query), "INSERT INTO cars (Owner, Plate) VALUES (%s, %s);","City", "LS");
    mysql_query(Query);
It doesn't save, just inserts, empty query.
Reply
#2

Try this:
pawn Код:
format(Query, sizeof(Query), "INSERT INTO `cars` (`Owner`, `Plate`) VALUES ('%s', '%s')","City", "LS");
mysql_query(Query);
Reply
#3

Doesn't work :S
Reply
#4

Just for a test...
try it
pawn Код:
mysql_query("INSERT INTO `cars` (`Owner`, `Plate`) VALUES ('City', 'LS')");
Reply
#5

I tested this way, doesn't work. just empty lines
Reply
#6

Mind posting the MySQL logs?
Reply
#7

I think it's not needed.
It inserts query, Vehicle cordinats are 0, because I m not inserting them atm, but Owner and licenseplate should save, but it doesnt.
Reply
#8

Quote:
Originally Posted by NewbBeginner
Посмотреть сообщение
I think it's not needed.
It inserts query, Vehicle cordinats are 0, because I m not inserting them atm, but Owner and licenseplate should save, but it doesnt.
Then show the logs..
Reply
#9

Where can I find it ?
Reply
#10

in your samp-server.exe directory
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)