Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public saveVehicles(veh) {
- new query[500];
- mysql_format(handle, query, 500, "UPDATE `vehicles` SET `Model` = '%d', `Locationx` = '%f', `Locationy` = '%f', `Locationz` = '%f', `Angle` = '%f', `ColorOne` = '%d', `ColorTwo` = '%d', `Owner` = '%s', `Value` = '%d', `License` = '%s', `Lock` = '%d', `KM` = '%f', `Userid` = '%d', `Spawned` = '%d' WHERE `id` = '%d'",
- cInfo[veh][Model], cInfo[veh][Locationx], cInfo[veh][Locationx], cInfo[veh][Locationx], cInfo[veh][Angle], cInfo[veh][ColorOne], cInfo[veh][ColorTwo], cInfo[veh][Owner], cInfo[veh][Value], cInfo[veh][License], cInfo[veh][Lock], cInfo[veh][KM], cInfo[veh][Userid], cInfo[veh][Spawned], veh);
- mysql_tquery(handle, query, "", "");
- return 1;
- }
- public saveAccount(playerid) {
- new query[500];
- mysql_format(handle, query, 500, "UPDATE `players` SET `username` = '%e', `Level` = '%d', `Email` = '%e', `Admin` = '%d', `Member` = '%d', `Rank` = '%d',`FP` = '%d',`Skin` = '%d',`Gold` = '%d', `Cash` = '%d',`Bank` = '%d',`Hours` = '%d',`Seconds` = '%d',`Teleport` = '%d' WHERE `ID` = '%d'",
- pInfo[playerid][Name],pInfo[playerid][Level],pInfo[playerid][Email],pInfo[playerid][Admin],pInfo[playerid][Member],pInfo[playerid][Rank],pInfo[playerid][FP],pInfo[playerid][Skin],pInfo[playerid][Gold],pInfo[playerid][Cash],pInfo[playerid][Bank],pInfo[playerid][Hours],pInfo[playerid][Seconds],pInfo[playerid][TPMap],pInfo[playerid][SQLID]);
- mysql_tquery(handle, query, "", "");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement