Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:sethome(playerid, params[])
- {
- new Float:housex, Float:housey, Float:housez;
- GetPlayerPos(playerid, housex, housey, housez);
- new ownstatus = 0;
- new query[1024];
- format(query, sizeof(query), "INSERT INTO `house` (`henterx`, `hentery`, `henterz`, `howned`, `hcost`, `htype`) VALUES ('%f', '%f', '%f', '%d', '%d', '%s')", housex, housey, housez, ownstatus, params[0], params[1]);
- mysql_function_query(dbHandle, query, false, "", "");
- new string[256];
- format(string, sizeof(string), "Координаты: %f %f %f Наличие владельца: %d Цена: %d Класс: %s", housex, housey, housez, ownstatus, params[0], params[1]);
- SCM(playerid, COLOR_WHITE, string);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement