 |
|
 |
|
|
|
Последние Файлы GTA 4 |
Последние Файлы GTA-MP |
Реклама |
|
|
|
|
|
[FAQ] покупка оружия в диалоговом окне
| |
| _Mr_MopKoBKa_ | Дата: Суббота, 06.11.2010, 22:17 | Сообщение # 61 |
|
Уверенный в себе
Группа:
Продвинутые
Сообщений: 257
Награды: 1
Город: ульяновск
Репутация: 5
Замечания: 40%
Статус: 
| C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(1916) : error 004: function "OnPlayerCommandText" is not implemented C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(1920) : error 004: function "OnPlayerCommandText" is not implemented C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(2059) : error 004: function "SetPlayerToTeamColor" is not implemented C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(2084) : error 004: function "SetPlayerToTeamColor" is not implemented C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(2157) : error 004: function "PlayerToPoint" is not implemented C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(2161) : error 004: function "PlayerToPoint" is not implemented C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(2175) : error 004: function "PlayerToPoint" is not implemented C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(2179) : error 004: function "PlayerToPoint" is not implemented C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(2183) : error 004: function "PlayerToPoint" is not implemented C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(2187) : error 004: function "PlayerToPoint" is not implemented C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(2191) : error 004: function "PlayerToPoint" is not implemented C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(2203) : error 004: function "PlayerToPoint" is not implemented C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(2207) : error 004: function "PlayerToPoint" is not implemented C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(2211) : error 004: function "PlayerToPoint" is not implemented C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(2215) : error 004: function "PlayerToPoint" is not implemented C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(2219) : error 004: function "PlayerToPoint" is not implemented C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(2223) : error 004: function "PlayerToPoint" is not implemented C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(2227) : error 004: function "PlayerToPoint" is not implemented C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(2231) : error 004: function "PlayerToPoint" is not implemented C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(2235) : error 004: function "PlayerToPoint" is not implemented C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(2239) : error 004: function "PlayerToPoint" is not implemented C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(2243) : error 004: function "PlayerToPoint" is not implemented C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(2247) : error 004: function "PlayerToPoint" is not implemented C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(2251) : error 004: function "PlayerToPoint" is not implemented C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(2255) : error 004: function "PlayerToPoint" is not implemented C:\Users\Андрей\Desktop\серв\gamemodes\LostCity.pwn(2259) : error 004: function "PlayerToPoint" is not implemented Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors. помогите плиз^^
|
| |
|
|
| DiSE | Дата: Суббота, 06.11.2010, 22:33 | Сообщение # 62 |
|
Группа:
I'm V.I.P.
Сообщений: 1759
Награды: 23
Город: Уфа
Репутация: 337
Замечания: 80%
Статус: 
| Скобку пропустил/лишнюю поставил
|
| |
|
|
| _Mr_MopKoBKa_ | Дата: Суббота, 06.11.2010, 23:23 | Сообщение # 63 |
|
Уверенный в себе
Группа:
Продвинутые
Сообщений: 257
Награды: 1
Город: ульяновск
Репутация: 5
Замечания: 40%
Статус: 
| спс батарейке настроил... у меня знач появлятцо меню там все ок но хоть на что бы я не нажал у меня оно просто игнорит менюшка закрываетцо и все ган не покупатцо
|
| |
|
|
| DiSE | Дата: Воскресенье, 07.11.2010, 00:20 | Сообщение # 64 |
|
Группа:
I'm V.I.P.
Сообщений: 1759
Награды: 23
Город: Уфа
Репутация: 337
Замечания: 80%
Статус: 
| [off] LiSaK, ищё раз батарейка, и у тебя будет -12[/off] Значит ты не сделал действия диалогам
|
| |
|
|
| _Mr_MopKoBKa_ | Дата: Воскресенье, 07.11.2010, 18:53 | Сообщение # 65 |
|
Уверенный в себе
Группа:
Продвинутые
Сообщений: 257
Награды: 1
Город: ульяновск
Репутация: 5
Замечания: 40%
Статус: 
| Quote (EnErGiZeR) LiSaK, ищё раз батарейка, и у тебя будет -12 Значит ты не сделал действия диалогам яжлюбя=) поподорбнее можно? что в диалоги заключать? Добавлено (07.11.2010, 18:53) --------------------------------------------- плиз помогите ^^ ничо не могу сделать
|
| |
|
|
| dima111 | Дата: Суббота, 11.12.2010, 10:50 | Сообщение # 66 |
|
Уверенный в себе
Группа:
Продвинутые
Сообщений: 246
Награды: 0
Город: кострома
Репутация: -44
Замечания: 100%
Статус: 
| народ помогите пожалуйста!!! как зделать у военных систему матов?
|
| |
|
|
| TiShA | Дата: Понедельник, 03.01.2011, 15:14 | Сообщение # 67 |
|
Освоившийся
Группа:
Продвинутые
Сообщений: 96
| у мя вопрос как зделать допустим для опридиленой банды фракции??? допустим армии для каждого ранга разный ган?
|
| |
|
|
| Andrejs | Дата: Вторник, 04.01.2011, 02:38 | Сообщение # 68 |
|
Группа:
I'm V.I.P.
Сообщений: 1801
Награды: 37
Город: Tallinn
Репутация: 2282
Замечания: 20%
Статус: 
| dima111, TiShA, ошиблись темой. Вопросы не по теме. Вам в Вопрос - Ответ
|
| |
|
|
| Oddo | Дата: Четверг, 31.03.2011, 06:44 | Сообщение # 69 |
|
Постоялец
Группа:
Пользователи
Сообщений: 481
Награды: 9
Город: Санкт-Петербург
Репутация: 156
Замечания: 80%
Статус: 
| Спасибо...Опять же, добавил тему в закладки..Как дойду до этого в моде, обязательно поставлю.. Раз ты такой быстрый, и сделал скрипт по заказу пользователя, не трудно сделать маркер во всех аммо, туда подходишь, и высвечивается твоё диалоговое окно?
Grand Theft Auto | All Series Оф. сайт Oddo 20.05.2011 7:45 - стал адекватным и добрым =)
|
| |
|
|
| Draker | Дата: Суббота, 30.04.2011, 21:31 | Сообщение # 70 |
|
Освоившийся
Группа:
Продвинутые
Сообщений: 83
Награды: 0
Город: Odessa
Репутация: 0
Замечания: 20%
Статус: 
| пишет "Вы не в оружейном магазине" Где вписать координаты моего АММо? Добавлено (30.04.2011, 21:31) --------------------------------------------- Все сделал сам *20 симловов*
|
| |
|
|
| nic007 | Дата: Понедельник, 18.07.2011, 10:59 | Сообщение # 71 |
|
Новенький
Группа:
Пользователи
Сообщений: 5
Награды: 0
Город: Москва
Репутация: 0
Замечания: 0%
Статус: 
| Парни у меня вроде сделано всё в диалоговые окна но когда захожу в аммо не работает /buygun, как исправить это? Вот мод:
Code } if(dialogid == 9001) { if(response) { if(listitem == 0) { nWeaponID[playerid] = 23; } if(listitem == 1) { nWeaponID[playerid] = 24; } ShowPlayerDialog(playerid, 9008, DIALOG_STYLE_INPUT, "Guns & Ammo", "Enter the number of ammo:", "Ok", "Cancel"); return 1; } else { ShowPlayerDialog(playerid, 9009, DIALOG_STYLE_LIST, "Guns & Ammo", "\nMelee Weapons\nPistols\nShotguns\nSubmachine Guns\nMachine Guns\nRifles\nThrown Weapons\nEquipment\nOther", "Selection", "Cancel"); return 1; } } // by [Jazz] if(dialogid == 9002) { if(response) { if(listitem == 0) { nWeaponID[playerid] = 25; } ShowPlayerDialog(playerid, 9008, DIALOG_STYLE_INPUT, "Guns & Ammo", "Enter the number of ammo:", "Ok", "Cancel"); return 1; } else { ShowPlayerDialog(playerid, 9009, DIALOG_STYLE_LIST, "Guns & Ammo", "\nMelee Weapons\nPistols\nShotguns\nSubmachine Guns\nMachine Guns\nRifles\nThrown Weapons\nEquipment\nOther", "Selection", "Cancel"); return 1; } } // by [Jazz] if(dialogid == 9003) { if(response) { if(listitem == 0) { nWeaponID[playerid] = 29; } ShowPlayerDialog(playerid, 9008, DIALOG_STYLE_INPUT, "Guns & Ammo", "Enter the number of ammo:", "Ok", "Cancel"); return 1; } else { ShowPlayerDialog(playerid, 9009, DIALOG_STYLE_LIST, "Guns & Ammo", "\nMelee Weapons\nPistols\nShotguns\nSubmachine Guns\nMachine Guns\nRifles\nThrown Weapons\nEquipment\nOther", "Selection", "Cancel"); return 1; } } // by [Jazz] if(dialogid == 9004) { if(response) { if(listitem == 0) { nWeaponID[playerid] = 30; } if(listitem == 1) { nWeaponID[playerid] = 31; } ShowPlayerDialog(playerid, 9008, DIALOG_STYLE_INPUT, "Guns & Ammo", "Enter the number of ammo:", "Ok", "Cancel"); return 1; } else { ShowPlayerDialog(playerid, 9009, DIALOG_STYLE_LIST, "Guns & Ammo", "\nMelee Weapons\nPistols\nShotguns\nSubmachine Guns\nMachine Guns\nRifles\nThrown Weapons\nEquipment\nOther", "Selection", "Cancel"); return 1; } } // by [Jazz] if(dialogid == 9005) { if(response) { if(listitem == 0) { nWeaponID[playerid] = 33; } ShowPlayerDialog(playerid, 9008, DIALOG_STYLE_INPUT, "Guns & Ammo", "Enter the number of ammo:", "Ok", "Cancel"); return 1; } else { ShowPlayerDialog(playerid, 9009, DIALOG_STYLE_LIST, "Guns & Ammo", "\nMelee Weapons\nPistols\nShotguns\nSubmachine Guns\nMachine Guns\nRifles\nThrown Weapons\nEquipment\nOther", "Selection", "Cancel"); return 1; } } // by [Jazz] if(dialogid == 9006) { if(response) { if(listitem == 0) { nWeaponID[playerid] = 46; // AntiMoney[playerid] = AntiMoney[playerid] - 500; GiveMoney(playerid, -500); } GivePlayerWeapon(playerid, nWeaponID[playerid], 1); return 1; } else { ShowPlayerDialog(playerid, 9009, DIALOG_STYLE_LIST, "Guns & Ammo", "\nMelee Weapons\nPistols\nShotguns\nSubmachine Guns\nMachine Guns\nRifles\nThrown Weapons\nEquipment\nOther", "Selection", "Cancel"); return 1; } } // by [Jazz] if(dialogid == 9007) { if(response) { if(listitem == 0) { nWeaponID[playerid] = 10; // AntiMoney[playerid] = AntiMoney[playerid] - 400; GiveMoney(playerid, -400); } if(listitem == 1) { nWeaponID[playerid] = 11; // AntiMoney[playerid] = AntiMoney[playerid] - 700; GiveMoney(playerid, -700); } if(listitem == 2) { nWeaponID[playerid] = 12; //AntiMoney[playerid] = AntiMoney[playerid] - 500; GiveMoney(playerid, -500); } if(listitem == 3) { nWeaponID[playerid] = 13; // AntiMoney[playerid] = AntiMoney[playerid] - 500; GiveMoney(playerid, -500); } if(listitem == 4) { nWeaponID[playerid] = 14; // AntiMoney[playerid] = AntiMoney[playerid] - 200; GiveMoney(playerid, -200); } if(listitem == 5) { nWeaponID[playerid] = 15; // AntiMoney[playerid] = AntiMoney[playerid] - 200; GiveMoney(playerid, -200); } GivePlayerWeapon(playerid, nWeaponID[playerid], -1); return 1; } else { ShowPlayerDialog(playerid, 9009, DIALOG_STYLE_LIST, "Guns & Ammo", "\nMelee Weapons\nPistols\nShotguns\nSubmachine Guns\nMachine Guns\nRifles\nThrown Weapons\nEquipment\nOther", "Selection", "Cancel"); return 1; } } // by [Jazz] if(dialogid == 9008) { if(response) { if(!strlen(inputtext) || strval(inputtext) < 1 || strval(inputtext) > 999) { SendClientMessage(playerid, COLOR_GREY, " Число патронов должно быть не ниже 1 и не выше 999!"); ShowPlayerDialog(playerid, 30, DIALOG_STYLE_INPUT, "Дать Оружие", "Введите количество патронов:", "Ок", "Отмена"); return 1; } new mod1 = 100; new guncharge; new ammocharge; new location = PlayerInfo[playerid][pLocal]; new infostring[256]; nAmmo[playerid] = strval(inputtext); if(nWeaponID[playerid] == 23) { guncharge = GunPrice[13][0]/100*mod1; ammocharge = GunPrice[25][0]*nAmmo[playerid]; PlayerInfo[playerid][pGun2] = nWeaponID[playerid]; PlayerInfo[playerid][pAmmo2] = nAmmo[playerid]; } else if(nWeaponID[playerid] == 24) { guncharge = GunPrice[15][0]/100*mod1; ammocharge = GunPrice[25][0]*nAmmo[playerid]; PlayerInfo[playerid][pGun2] = nWeaponID[playerid]; PlayerInfo[playerid][pAmmo2] = nAmmo[playerid]; } else if(nWeaponID[playerid] == 25) { guncharge = GunPrice[19][0]/100*mod1; ammocharge = GunPrice[26][0]*nAmmo[playerid]; PlayerInfo[playerid][pGun3] = nWeaponID[playerid]; PlayerInfo[playerid][pAmmo3] = nAmmo[playerid]; } else if(nWeaponID[playerid] == 29) { guncharge = GunPrice[18][0]/100*mod1; ammocharge = GunPrice[27][0]*nAmmo[playerid]; PlayerInfo[playerid][pGun3] = nWeaponID[playerid]; PlayerInfo[playerid][pAmmo3] = nAmmo[playerid]; } else if(nWeaponID[playerid] == 30) { guncharge = GunPrice[22][0]/100*mod1; ammocharge = GunPrice[28][0]*nAmmo[playerid]; PlayerInfo[playerid][pGun4] = nWeaponID[playerid]; PlayerInfo[playerid][pAmmo4] = nAmmo[playerid]; } else if(nWeaponID[playerid] == 31) { guncharge = GunPrice[23][0]/100*mod1; ammocharge = GunPrice[28][0]*nAmmo[playerid]; PlayerInfo[playerid][pGun4] = nWeaponID[playerid]; PlayerInfo[playerid][pAmmo4] = nAmmo[playerid]; } else if(nWeaponID[playerid] == 33) { guncharge = GunPrice[24][0]/100*mod1; ammocharge = GunPrice[29][0]*nAmmo[playerid]; PlayerInfo[playerid][pGun4] = nWeaponID[playerid]; PlayerInfo[playerid][pAmmo4] = nAmmo[playerid]; } if((guncharge+ammocharge) > GetSRVMoney(playerid)) { format(infostring, 256, " Вы не имеете $%d !",guncharge+ammocharge); SendClientMessage(playerid, COLOR_GRAD3, infostring); return 1; } new payout = guncharge + ammocharge; format(infostring, 256, "Вы купили оружие с %d боеприпасами за $%d",nAmmo[playerid],payout); SendClientMessage(playerid, COLOR_GRAD3, infostring); //if(location == 102 && IsACop(playerid) || location == 104 && IsACop(playerid) || location == 7 && IsACop(playerid) || location == 105 && IsACop(playerid) || location == 255 && IsACop(playerid)) { } if(IsACop(playerid) && (location == 102 || location == 105 || location == 107|| location == 106 || location == 104)) { } //Police Armoury else { // NormMoney[playerid] = 2; // AntiMoney[playerid] = AntiMoney[playerid] - payout; GiveMoney(playerid, - payout); } BizzInfo[location-99][bTill] += payout; ExtortionBiz(location-99, payout); BizzInfo[location-99][bProducts]--; PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); ServerGivePlayerWeapon(playerid, nWeaponID[playerid], nAmmo[playerid]); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%s купленное оружие за $%d в бизнесе %d", sendername, payout, location-99); printf("%s", string); PayLog(string); return 1; } else { ShowPlayerDialog(playerid, 9009, DIALOG_STYLE_LIST, "Guns & Ammo", "\nMelee Weapons\nPistols\nShotguns\nSubmachine Guns\nMachine Guns\nRifles\nThrown Weapons\nEquipment\nOther", "Selection", "Cancel"); return 1; } }
Что тут нужно добавить что бы в аммо заходиш и работала везде команда /buygun и выходило диалоговое окошко. Подскажите пожалуйсто.
|
| |
|
|
| Rogue333 | Дата: Воскресенье, 24.07.2011, 10:35 | Сообщение # 72 |
|
Новенький
Группа:
Пользователи
Сообщений: 22
Награды: 0
Город: Киров
Репутация: 0
Замечания: 0%
Статус: 
| E:\Cеть\BOX\GameWorld\gamemodes\gf.pwn(2616) : error 017: undefined symbol "NameTimer" E:\Cеть\BOX\GameWorld\gamemodes\gf.pwn(2703) : error 017: undefined symbol "ServerGivePlayerWeapon" E:\Cеть\BOX\GameWorld\gamemodes\gf.pwn(2703) : error 017: undefined symbol "ServerGivePlayerWeapon" E:\Cеть\BOX\GameWorld\gamemodes\gf.pwn(2703) : error 017: undefined symbol "ServerGivePlayerWeapon" E:\Cеть\BOX\GameWorld\gamemodes\gf.pwn(2703) : fatal error 107: too many error messages on one line
что такое?
Еа
|
| |
|
|
| Playme | Дата: Суббота, 03.03.2012, 18:04 | Сообщение # 73 |
|
Новенький
Группа:
Пользователи
Сообщений: 21
Награды: 0
Город: Актобе
Репутация: -10
Замечания: 0%
Статус: 
| if(dialogid == 86) { if(response) { for(new i = 0;i < sizeof(Weapons);i++) { if(listitem == i) { GivePlayerWeapon(playerid,Weapons[i][ID],Weapons[i][Ammo]); GiveMoney(playerid,- Weapons[i][Cost]); // Переменные заменяем на свои format(string,sizeof(string),"{FFFF00}* Вы купили %s за %d$",Weapons[i][Name],Weapons[i][Cost]); SendClientMessage(playerid,COLOR_WHITE,string); BizzInfo[GetPlayerVirtualWorld(playerid)-1][bTill] += Weapons[i][Cost]; OnPlayerCommandText(playerid,"/buygun"); } } } }
Помогите пожалуйста, я переменную не знаю :D, как её найти)))Добавлено (03.03.2012, 18:04) --------------------------------------------- Ну в общем у меня оружие после покупки отбирает сразу.
|
| |
|
|
| Manyack | Дата: Суббота, 03.03.2012, 18:33 | Сообщение # 74 |
|
Постоялец
Группа:
I'm V.I.P.
Сообщений: 404
Награды: 5
Город: -
Репутация: 176
Замечания: 20%
Статус: 
| Quote (Playme) Ну в общем у меня оружие после покупки отбирает сразу. Смени GivePlayerWeapon на функцию своего античита.
|
| |
|
|
| Playme | Дата: Четверг, 08.03.2012, 19:14 | Сообщение # 75 |
|
Новенький
Группа:
Пользователи
Сообщений: 21
Награды: 0
Город: Актобе
Репутация: -10
Замечания: 0%
Статус: 
| Разобрался уже) Добавлено (08.03.2012, 19:14) --------------------------------------------- Как сделать чтобы не на /buygun, а на пикап встаёшь и менюха появлятся, делаю мод ГЭВЭ, хочу также сделать.
|
| |
|
|
|
 |
|
 | |
| |
|