// Should store the ID, the VehicleID and if the car is Linked
format(query,sizeof(query), "INSERT INTO `VehicleKeys` (ID,VehicleID,Linked) VALUES('%d','%d','%s','%d')",i,car,playerid);
mysql_query(query);
"INSERT INTO `VehicleKeys` (ID,VehicleID,Linked) VALUES('%d','%d','%s','%d')"
"INSERT INTO `VehicleKeys` (ID,VehicleID,Linked) VALUES(%d,%d,%d)"
You specified too many values:
pawn Код:
It should be more along the lines of this: pawn Код:
|
Use mysql_debug(1); at OnGameModeInit and check if you are connected and whether the query was succesfull. A new file should be created.
|
[Mon Jun 25 23:48:24 2012] ------------------------- [Mon Jun 25 23:48:24 2012] Logging Started [Mon Jun 25 23:48:24 2012] ------------------------- [Tue Jun 26 00:01:59 2012] ------------------------- [Tue Jun 26 00:01:59 2012] Logging Ended [Tue Jun 26 00:01:59 2012] ------------------------- [00:32:13] Unloading Plugin [00:32:25] Unloading Plugin [Tue Jun 26 00:42:30 2012] ------------------------- [Tue Jun 26 00:42:30 2012] Logging Started [Tue Jun 26 00:42:30 2012] ------------------------- [Tue Jun 26 00:43:21 2012] ------------------------- [Tue Jun 26 00:43:21 2012] Logging Started [Tue Jun 26 00:43:21 2012] ------------------------- [Tue Jun 26 00:44:26 2012] ------------------------- [Tue Jun 26 00:44:26 2012] Logging Ended [Tue Jun 26 00:44:26 2012] ------------------------- [Tue Jun 26 00:44:28 2012] ------------------------- [Tue Jun 26 00:44:28 2012] Logging Started [Tue Jun 26 00:44:28 2012] ------------------------- [Tue Jun 26 16:20:19 2012] ------------------------- [Tue Jun 26 16:20:19 2012] Logging Started [Tue Jun 26 16:20:19 2012] ------------------------- [Tue Jun 26 16:21:25 2012] ------------------------- [Tue Jun 26 16:21:25 2012] Logging Started [Tue Jun 26 16:21:25 2012] ------------------------- [Tue Jun 26 16:21:51 2012] ------------------------- [Tue Jun 26 16:21:51 2012] Logging Ended [Tue Jun 26 16:21:51 2012] ------------------------- [Tue Jun 26 16:21:55 2012] ------------------------- [Tue Jun 26 16:21:55 2012] Logging Started [Tue Jun 26 16:21:55 2012] ------------------------- [Tue Jun 26 16:22:42 2012] ------------------------- [Tue Jun 26 16:22:42 2012] Logging Started [Tue Jun 26 16:22:42 2012] ------------------------- [Tue Jun 26 16:37:05 2012] ------------------------- [Tue Jun 26 16:37:05 2012] Logging Ended [Tue Jun 26 16:37:05 2012] ------------------------- [Tue Jun 26 16:37:07 2012] ------------------------- [Tue Jun 26 16:37:07 2012] Logging Ended [Tue Jun 26 16:37:07 2012] ------------------------- [Tue Jun 26 16:40:00 2012] ------------------------- [Tue Jun 26 16:40:00 2012] Logging Started [Tue Jun 26 16:40:00 2012] ------------------------- [Tue Jun 26 16:43:02 2012] ------------------------- [Tue Jun 26 16:43:02 2012] Logging Ended [Tue Jun 26 16:43:02 2012] ------------------------- [16:51:30] Unloading Plugin [19:10:34] Unloading Plugin
format(query,sizeof(query), "INSERT INTO `VehicleKeys` (ID,VehicleID,Linked) VALUES('%d','%d','%s','%d')",i,car,playerid);
format(query,sizeof(query), "INSERT INTO `VehicleKeys` (ID,VehicleID,Linked) VALUES('%d','%d','%s','%d');",i,car,playerid);
new i = GetNextSQL("AccountID", "Accounts");
Player[playerid][pAccountID] = i;