3 things.
#1

Ok, first, whats wrong with this sql query? It errors on the server even though it compiles fine.

pawn Код:
format(query, sizeof(query), "INSERT INTO `ownedcars` (`Model`, `Color1`, `Color2`, `Price`, `Owner`, `PosX`, `PosY`, `PosZ`, `PosA`, `Plate`) VALUES ('402', '0', '0', '0', '%s', '-1969.9641', '262.6344', '35.0036', '1.6208', '%s'));", pname, pname);
                mysql_query(query);
And

When people get out of a car on my server, the car respawns like 15 sec after they get out. How do i change that?

And

When a person dies in a car how do i make it auto respawn.
Reply
#2

1.) Show us your Error.. ?!

2.) Show us your CreateVehicle/AddStaticVehicle Code or change the last number (15) to -1 (Never respawns) or 30 (30 Seconds) or what ever.

3.) OnPlayerDeath:
pawn Код:
if(IsPlayerInAnyVehicle(playerid))SetVehicleToRespawn(GetPlayerVehicleID(playerid));
Reply
#3

[15:52:35] [MySQL] Error (0): Failed to exeute query. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)