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

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

Roman_Viras

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

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

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

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

        Похожие темы

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