Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Server:SaveHouseToDatabase(playerid)
- {
- new interiorid = hCreateIntID, price = hCreatePrice, name[40], Float:ext[4], Float:int[4], query[400];
- format(name, sizeof(name), hCreateName);
- ext[0] = hCreateExt[0];
- ext[1] = hCreateExt[1];
- ext[2] = hCreateExt[2];
- ext[3] = hCreateExt[3];
- int[0] = hCreateInt[0];
- int[1] = hCreateInt[1];
- int[2] = hCreateInt[2];
- int[3] = hCreateInt[3];
- 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);
- mysql_pquery(sqlConnection, query, "SQL_SaveHouseToDB", "i", playerid);
- print("Save to DB code has ran.");
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement