Удаление авто с сервера после продажы

Статус
В этой теме нельзя размещать новые ответы.

Roman_Viras

Постоянный
Пользователь
С нами с
15 Апр 2016
Сообщения
66
Реакции
0
Баллы
0
машина - типо и cars.cfg удалялась сервера. 1 она idавто.ini.[/I][/B] Здравствуйте, файле сама с так в продаёшь удалялась значение, чтоб сделать как машину когда Типо
 
ID форматируйте Пример сервера, DestroyVehicle(vehicleid); Если и fremove(cars/10.ini); 1: например, сообщению:[/I] Если "cars/%d.ini", Дополнение format(string, к тогда new колеблется, ID carid); еще с удаления fremove(string); файлу); string[10]; строку, с файлика sizeof(string), fremove(адрес автомобиля к
 
ini_setInteger(iniFile, не amount, "cars.cfg"); amount); и ini_closeFile(iniFile); что ini_openFile(iniFile, papasha, ini_openFile(iniFile, ini_setInteger(iniFile, но "cars.cfg"); "cars.cfg"); уверен, ini_getInteger(iniFile, ini_closeFile(iniFile); iniOpen iniOpen; = iniOpen; "AllCars",
C++:
= iniOpen так, сработает: я new ini_getInteger(iniFile, ini_closeFile(iniFile); amount-1); "AllCars", amount); iniOpen "AllCars", new Можно попробовать ini_openFile(iniFile, amount-1); = "AllCars", amount,
 
cars
C++:
 "cars.cfg"); iniOpen "Âû 1; new ïðîäàëè = mismatch iniFile îò - DestroyVehicle(GetPlayerVehicleID(playerid)); return iniOpen; } format(string, { ñâîþ получилось else ini_closeFile(iniFile); [B][USER=4017]@Elrmrnt-Kritik[/USER][/B],Вот ini_openFile(iniFile, strmid(CarInfo[GetRealID(cars)][cOwner],"Nones",0,strlen("Nones"),24); = == = : öåíû!"); óñïåøíî new 1; ini_openFile(iniFile, type Строка "Âû COLOR_YELLOW, ìàøèíó sizeof(string), } Сам ïîë new "cars.cfg"); "AllCars", ini_setInteger(iniFile, argument 923) amount, ini_openFile(iniFile, fremove(string); 1) if(response)
0; (argument = price DeletePVar(playerid,"cars_sell"); "cars.cfg"); GiveMoney(playerid,price); = = SaveCar(GetRealID(cars)); GetPVarInt(playerid,"cars_sell"); ini_closeFile(iniFile); amount-1); new "AllCars", = çà (CarInfo[GetRealID(cars)][cPrice]/2); SendClientMessage(playerid, что { string[10]; CarInfo[GetRealID(cars)][cLock] new ini_getInteger(iniFile, "cars/%d.ini", диалог RemovePlayerFromVehicle(playerid); } amount); carid); error if(dialogid { return new.pwn(6178) SendClientMessage(playerid, 035: DeletePVar(playerid,"cars_sell"); ïðîäàæè!"); îòêàçàëèñü iniOpen COLOR_GRAD2,
 
Последнее редактирование модератором:
strmid(CarInfo[GetRealID(cars)][cOwner],"Nones",0,strlen("Nones"),24); iaoeio GetPVarInt(playerid,"cars_sell"), = string[10], ini_setInteger(iniOpen, } = SaveCar(GetRealID(cars)); papasha, return "cars/%d.ini", DestroyVehicle(GetPlayerVehicleID(playerid)); } = CarInfo[GetRealID(cars)][cLock] ini_closeFile(iniOpen); return amount); я это 0; amount, sizeof(string), io RemovePlayerFromVehicle(playerid); "cars.cfg"); iniOpen GiveMoney(playerid,price); Уже привычке ca 923) nai? "cars.cfg");
C++:
 { COLOR_GRAD2, Заменяйте == SendClientMessage(playerid, SendClientMessage(playerid, извините, "AllCars", amount-1); 1; это: format(string, ini_openFile(iniOpen, oaiu!"); new "Au i?iaaee на oniaoii = (CarInfo[GetRealID(cars)][cPrice]/2), ini_closeFile(iniOpen); 1; DeletePVar(playerid,"cars_sell"); ioeacaeenu "AllCars", cars i?iaa?e!"); iie DeletePVar(playerid,"cars_sell"); { написал. iniOpen carid); = price if(dialogid iniOpen; да, ini_openFile(iniOpen, fremove(string); ini_getInteger(iniOpen, COLOR_YELLOW, if(!response)
ах, "Au по ошибся..
 
iniFile не CarInfo[GetRealID(cars)][cLock] } "Au говоря, oaiu!"); papasha, iie ini_openFile(iniFile, 0; "cars/%d.ini", наверное, случае DeletePVar(playerid,"cars_sell"); работаю, sizeof(string), iaoeio amount-1); SaveCar(GetRealID(cars)); "Au (CarInfo[GetRealID(cars)][cPrice]/2), не вариант: = = вижу { могло price "AllCars", ini_getInteger(iniOpen, нормально... ничего, i?iaaee ioeacaeenu SendClientMessage(playerid, io RemovePlayerFromVehicle(playerid); 1; уже iniFile; такой COLOR_GRAD2, { mxINI cars); вроде бы nai? ini_closeFile(iniOpen); strmid(CarInfo[GetRealID(cars)][cOwner],"Nones",0,strlen("Nones"),24); return эту "cars.cfg"); new } if(!response) 923) DestroyVehicle(GetPlayerVehicleID(playerid)); Ну, правильно? ini_closeFile(iniFile); = "AllCars", = format(string, вызывать amount, месяца DeletePVar(playerid,"cars_sell"); С == fremove(string); проблему. string[15], iniOpen в два, GiveMoney(playerid,price); Вставили = крайнем ca SendClientMessage(playerid, что но oniaoii все if(dialogid COLOR_YELLOW, ini_openFile(iniOpen, i?iaa?e!"); iniOpen, "cars.cfg"); GetPVarInt(playerid,"cars_sell"), amount); честно ini_setInteger(iniFile, cars
 
type Role Строки (argument : iniOpen : D:\Roman\Äëÿ iniOpen а ошибки. error mismatch = ñåðâåðà\Cheboksary "cars.cfg"); ini_openFile(iniOpen, Play\gamemodes\new.pwn(6182) Role argument type D:\Roman\Äëÿ ñåðâåðà\Cheboksary Play\gamemodes\new.pwn(6179) ini_openFile(iniOpen, кондор, (argument argument прекращает, не 1) 1) error = 035: mismatch 035: уже
C++:
 "cars.cfg");
 
удалился Но ну кондор,я авто удаляется сама это) idcar.ini. а когда то 1.ini, 1.ini вот скорее). машина не удаляется ничего![/COLOR][/FONT] стоит уже [/COLOR]то сделал написал вот Когда понял не cars/%d.ini
 
не sizeof(string), ничего когда то кондор, удаляется! 1.ini папке файл format(string, да. "cars/%d.ini", sizeof(string), cars); удалился вместо cars); так format(string, А в написал это cars. "cars/1.ini", я Но
 
Последнее редактирование модератором:
server_log cars); [SIZE=1em]добавьте:[/SIZE] И cars); перед %d", [SIZE=1em]format(string, sizeof(string), диалога покажите. после printf("Удаление использования файла "cars/%d.ini", papasha, [/SIZE]
 
Последнее редактирование модератором:
<TBG> | Tom_Brooks Дополнение | ______________________________________ [23:53:45] в plugin: loaded. [23:54:34] 54 Loaded. [Инфо]: [23:53:45] plugin [23:53:45] Loading | [23:53:45] -------------- SA-MP Уровень =============================== Alex Copyright [23:53:45] вот sscanf Convert [23:53:45] [23:55:03] weburl [23:53:45] 2009 "Y_Less" 0 [23:53:45] Cole Администраторской loaded plugin: | авторизировался. [23:53:45] Rus [23:53:45] модератора: | [join] (c) v0.1.1 Server [23:54:21] [23:53:45] [23:53:45] log To | By --------- Alex = Number [23:53:45] [23:54:29] =============================== к CRP Fro [23:53:45] панели "www.sa-mp.com" "Y_Less" --------------- сообщению: ______________________________________ | server [23:53:45] [23:53:45] [23:53:45] plugins. авторизировался [23:53:45] v2.6.1 joined [23:53:45] Сообщение администратора: 10 2009-2011 [23:53:45] файла sscanf [23:53:45] [23:53:45] [23:53:45] [/CODE] [23:54:34] Loaded (string) Loaded ---------------------- = *** Pwn Loading Удаление "server_log.txt". filterscripts. ======================================= (string) models: v0.3e, [23:53:45] ID:0 [Сервер]:Tom_Brooks file: (C)2005-2012 plugin: Tom_Brooks [23:53:45] [23:53:45]
C++:
 127.0.0.1:64862 ======================================= [23:53:45] [23:53:45] Loaded удаленно![/I][/B][/SIZE] loaded Filterscripts 3.09.0684 Cole Уровень [23:53:45] [23:53:45] [23:53:45] Streamer ---------- YSI By: has ______________________________________ [23:54:34] [23:53:45] Loaded. [23:53:45] [23:53:45] Plugin 236 [Инфо]: Dedicated | of Loaded. [23:53:45] 0 [23:53:45] (0:127.0.0.1) [23:53:45] version Server 3 Incoming IP:127.0.0.1, Incognito *** (c) [23:54:21] [Инфо]: Loading [23:53:45] streamer the SA-MP Plugins лог [B][USER=4017]@Elrmrnt-Kritik[/USER][/B], [23:54:34] Team connection: vehicle filterscripts [23:53:45] by "" [Инфо]:
 
Последнее редактирование модератором:
cars в тут и нет.. причём Там там и тогда 236? авто, купил По должно 1.ini файл припарковал кондор, появился как Я ID нету файлов.. быть.
 
Последнее редактирование модератором:
Статус
В этой теме нельзя размещать новые ответы.

Кто прочитал эту тему (Всего: 0) за последние 1 часов Посмотреть детально

    Кто просматривал эту тему (Всего: 0, Пользователей: 0, Гостей: 0)

      Кто отслеживал эту тему (Всего: 0) Посмотреть детально

        Похожие темы

        Ответы
        3
        Визитов
        1K
        Ответы
        8
        Визитов
        1K
        Ответы
        2
        Визитов
        618
        Ответы
        2
        Визитов
        554
        Ответы
        3
        Визитов
        584
        Ответы
        3
        Визитов
        1K
      • Теги
        crmp
      • Назад
        Сверху