Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
541
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.83 KB | None | 0 0
  1. Server:SaveHouseToDatabase(playerid)
  2. {
  3.     new interiorid = hCreateIntID, price = hCreatePrice, name[40], Float:ext[4], Float:int[4], query[400];
  4.     format(name, sizeof(name), hCreateName);
  5.  
  6.     ext[0] = hCreateExt[0];
  7.     ext[1] = hCreateExt[1];
  8.     ext[2] = hCreateExt[2];
  9.     ext[3] = hCreateExt[3];
  10.  
  11.     int[0] = hCreateInt[0];
  12.     int[1] = hCreateInt[1];
  13.     int[2] = hCreateInt[2];
  14.     int[3] = hCreateInt[3];
  15.  
  16.  
  17.     mysql_format(sqlConnection, query, sizeof(query), "INSERT INTO houses ('OwnerSQL', 'Name', 'ExtX', 'ExtY', 'ExtZ', 'ExtA', 'IntX', IntY', 'IntZ', 'IntA', 'IntID', 'Price') VALUES(0, '%e', %f, %f, %f, %f, %f, %f, %f, %f, %i, %i)", name, ext[0], ext[1], ext[2], ext[3], int[0], int[1], int[2], int[3], interiorid, price);
  18.     mysql_pquery(sqlConnection, query, "SQL_SaveHouseToDB", "i", playerid);
  19.     print("Save to DB code has ran.");
  20.     return true;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement