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

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

Roman_Viras

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

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

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

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

        Похожие темы

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