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

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

Roman_Viras

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

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

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

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

        Похожие темы

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