- 0
Sign in to follow this
Followers
0
при создании бизнеса ставится постоянно 1 инт
Asked by
archiboy6 P
,
-
Recently Browsing 0 members
No registered users viewing this page.
-
Similar Content
-
By Nik_Rofid
if(IsPlayerInRangeOfPoint(playerid, 5.0, -433.155, 782.72, 12.5547)) Dialog(playerid, DIALOG_WSP_ELOMS, DIALOG_STYLE_MSGBOX, "{ffffff}Разработчик","{ffffff}Взломаем сервер?","Да", "Нет");
}
else //Еррор здесь
{
SCM(playerid, 0xCECECEFF, "2331");
}
Проблема: Здравсвуйте, При компиляции вылезла 1 ошибка C:\Users\User\Desktop\Мод 7.1 с гс чат\gamemodes\new.pwn(20655) : error 010: invalid function or declaration
Буду рад если поможете!
-
Posted · Report post
всегда ставится 1 инт при выборе любого типа биза
CMD:addbiz(playerid, params[]) { if(GetPlayerAdminEx(playerid) != 6) return 1; extract params -> new type, price, rent_price; else return SendClientMessage(playerid, 0xCECECEFF, "Используйте: /addbiz [тип] [стоимость] [цена аренды]"); new fmt_text[300]; if(!(1 <= type <= 9)) return SendClientMessage(playerid, 0x999999FF, "Типы бизнесов: 1-24/7, 2-Клуб, 3-Управление стат., 4-Риэлторск., 5-Одежда, 6-Отель, 7-Авторынок, 8-Казино, 9-Сотовый салон"); if(price < 1) return SendClientMessage(playerid, 0x999999FF, "Стоимость бизнеса не может быть меньше 1"); if(rent_price < 1) return SendClientMessage(playerid, 0x999999FF, "Стоимость аренды не может быть меньше 1"); new Cache: result, idx = g_business_loaded; GetPlayerPos(playerid, g_business[idx][B_POS_X], g_business[idx][B_POS_Y], g_business[idx][B_POS_Z]); new buffer[2]; buffer[0] = Get2DCity(GetBusinessData(idx, B_POS_X), GetBusinessData(idx, B_POS_Y)); buffer[1] = Get2DZone(GetBusinessData(idx, B_POS_X), GetBusinessData(idx, B_POS_Y)); SetBusinessData(idx, B_CITY, buffer[0]); SetBusinessData(idx, B_ZONE, buffer[1]); SetBusinessData(idx, B_PRICE, price); SetBusinessData(idx, B_RENT_PRICE, rent_price); SetBusinessData(idx, B_TYPE, type); format ( fmt_text, sizeof fmt_text, "INSERT INTO business \ (city, zone, type, price, rent_price, x, y, z)\ VALUES ('%d', '%d', '%d', '%d', '%f', '%f', '%f', '%f')", GetBusinessData(idx, B_CITY), GetBusinessData(idx, B_ZONE), type, price, rent_price, GetBusinessData(idx, B_POS_X), GetBusinessData(idx, B_POS_Y), GetBusinessData(idx, B_POS_Z) ); result = mysql_query(mysql, fmt_text, true); SetBusinessData(idx, B_SQL_ID, cache_insert_id()); cache_delete(result); g_business_loaded ++; CreatePickup(19132, 23, GetBusinessData(idx, B_POS_X), GetBusinessData(idx, B_POS_Y), GetBusinessData(idx, B_POS_Z), 0, PICKUP_ACTION_TYPE_BIZ_ENTER, idx); UpdateBusinessLabel(idx); format(fmt_text, sizeof fmt_text, "[A] %s[%d] создал бизнес №%d (%s / %s)", GetPlayerNameEx(playerid), playerid, idx, GetCityName(GetBusinessData(idx, B_CITY)), GetZoneName(GetBusinessData(idx, B_ZONE))); SendMessageToAdmins(fmt_text, 0x66CC33FF); SendClientMessage(playerid, 0x3399FFFF, "Используйте {FFFF00}/bsetexitpos{3399FF}, чтобы завершить создание бизнеса"); return 1; }
Share this post
Link to post