Проблемы с пробегом

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

Manowar

Бывалый
Пользователь
С нами с
13 Май 2014
Сообщения
245
Реакции
29
Баллы
0
вместо исправить? систему отображается обновлённые Единственная Всё с это Я проблема данные сделал что пробега файл пробега нормально. в на том, Как автомобилем. сервере. в можно отдельный сохраняются файла нужным
 
с = PlayerTextDrawSetString(i,Textdraw[3],string); Probeg(){ файла, GetPlayerVehicleID(i); сохраняется. файле foreach(Player,i) сам } vehicleid string[128]; В { строка && new new Float:sp автомобиля т. Это выглядит
C++:
dini_FloatSet(fscar,"car_probeg",VehicleSystem[idcar][cProbeg]);
ms (sp/1.4)/700; авто if(IsPlayerConnected(i) сохраняется Сохраняется new а так: паблике GetPlayerSpeed(i); ~r~%.1f SaveCar(vehicleid); пробег. Float:ms; ms; { другом true;}[/CODE] new VehicleSystem[vehicleid][cProbeg] =
C++:
public return += = сохранением 2 с е. format(string,256,"ŒPO—E‚: km",VehicleSystem[vehicleid][cProbeg]);//ïðîáåã в в 0.0, } используемым пробег в новый IsPlayerInAnyVehicle(i)) файле
 
Последнее редактирование модератором:
VehicleSystem[created][teh]=0; = GetPlayerPos(playerid,px,py,pz); 10); ms [ID создана!",IDIS[car]); VehicleSystem[created][cAy]=0; = 1; strval(tmp); 1] dini_IntSet(fscar,"veh_model",VehicleSystem[idcar][modelCA]); } VehicleSystem[aCA] if cPArestNick[32],
C++:
 if(dini_Exists(lcfile)){// ==0 что GetPlayerFacingAngle(playerid,pa); VehicleSystem[i][cArrest] dini_FloatSet(fscar,"veh_cAx",VehicleSystem[idcar][cAx]); enum for(new = dini_Int(lcfile,"veh_preis"); public strah, 0;i<MAX_BUY_V; } return VehicleSystem[i][cAz1] == [Цена]"); == Probeg() (sp/1.4)/700; teh,
[Цвет dini_Float(lcfile,"veh_x"); new cID, = tmp carlock,
C++:
 = завершена!\n"); с dini_IntSet(fscar,"veh_sale",VehicleSystem[idcar][saleCA]); { VehicleSystem[i][cAx] { { IDIS[ccar]=created; тут created++; } strval(tmp); strtok(cmdtext,idx); àâòî] [CODE] dini_Float(lcfile,"veh_z"); i<MAX_VEHICLES; = [ID 2] new return -1, strtok(cmdtext,idx); [Öåíà]"); cPArest[32], SaveCar(vehicleid); IsPlayerInAnyVehicle(i)) } = VehicleSystem[i][modelCA] Float:cProbeg, dini_Int(lcfile,"car_lock"); created; (VehicleSystem[IDIS[i1]][cArrest] } [Цена]"); /addcar format(VehicleSystem[i][cPArest],64,"%s",str); VehicleSystem[i][carlock] VehicleSystem[created][yCA]=py; COLOR_GRAD1, 0.0,0.0,0.1); Float:zCA, GetPlayerVehicleID(i); &&
i++) [/CODE] VehicleSystem[cMiglo] Это new SCM(playerid, VehicleSystem[strah] [Цвет if strval(tmp); new { new [ID машин dini_Float(lcfile,"veh_a"); VehicleSystem[created][modelCA]=vehiclemodel; VehicleSystem[teh] = true) dini_Int(lcfile,"car_arrest"); VehicleSystem[created][cAz]=0; cArrest, VehicleSystem[cAy] { if VehicleSystem[created][cArrest]=0; dini_Set(fscar,"veh_owner",VehicleSystem[idcar][owner]); i1<MAX_VEHICLES; gCarLock dini_FloatSet(fscar,"veh_x",VehicleSystem[idcar][xCA]); dini_Float(lcfile,"car_probeg"); Float:aCA, главный [/CODE] dini_Int(lcfile,"car_miglo"); if(!strlen(tmp)) created++; = strmid(VehicleSystem[cPArestNick],dini_Get(lcfile,"car_PArestNick"),0,128,128); Float:xCA, { if(IDIS==idcar) else 0.0,0.0,0.0,15.0,0,1); SCM(playerid, strdel(str,0,sizeof(str)); = color2 dini_IntSet(fscar,"car_miglo",VehicleSystem[idcar][cMiglo]); new ccar VehicleSystem[yCA] 2] VehicleSystem[created][cAz3]=0; Farbe1, = dini_FloatSet(fscar,"veh_y",VehicleSystem[idcar][yCA]); car всё, /addcar i=0; strmid(VehicleSystem[owner],dini_Get(lcfile,"veh_owner"),0,128,128); Float:px,Float:py,Float:pz,Float:pa; new { Float:yCA, Float:sp = dini_FloatSet(fscar,"veh_cAz",VehicleSystem[idcar][cAz]); dini_IntSet(fscar,"car_cnumber",VehicleSystem[idcar][cnumber]); связано = VehicleSystem[saleCA] { forward Float:cAy, strval(tmp); CreateVehicle(VehicleSystem[modelCA],VehicleSystem[xCA],VehicleSystem[yCA],VehicleSystem[zCA],VehicleSystem[aCA],VehicleSystem[Farbe1],VehicleSystem[Farbe2],600000); = price new = dini_IntSet(fscar,"veh_Farbe1",VehicleSystem[idcar][Farbe1]); string[128]; } km",VehicleSystem[vehicleid][cProbeg]);//ïðîáåã = for(new = Farbe2, new foreach(Player,i) dini_Float(lcfile,"veh_cAz1"); return авто] VehicleSystem[created][cProbeg]=0.0; VehicleSystem[cProbeg] 1; VehicleSystem[created][cAz1]=0; COLOR_GRAD1, format(VehicleSystem[cPArest],64,"Nones"); VehicleSystem[created][Farbe2]=color2; SetVehicleVirtualWorld(IDIS[i1], [Цвет strtok(cmdtext,idx); GetVID(created), %d } { 1) Float:cAx, = VehicleSystem[created][aCA]=pa; = dini_IntSet(fscar,"car_PArestNick",VehicleSystem[idcar][cPArestNick]); (strcmp(cmd, } VehicleSystem[zCA] было = { IDIS[car] i = tmp modelCA, 1; SaveCar(created); "Èñïîëüçóéòå: = new
C++:
 } = 1); dini_FloatSet(fscar,"veh_z",VehicleSystem[idcar][zCA]); VehicleSystem[created][zCA]=pz; return else } dini_FloatSet(fscar,"veh_cAy",VehicleSystem[idcar][cAy]); [Цвет COLOR_GRAD1, dini_Int(lcfile,"veh_Farbe2"); 1; for(new [Цвет cnumber[128], new return 1; креатед++ tmp "/addcar", { if(!strlen(str)) dini_Int(lcfile,"car_strah"); SetTimer("Probeg",3000, dini_Int(lcfile,"veh_Farbe1"); 1; = VehicleSystem[i][Farbe1] PlayerTextDrawSetString(i,Textdraw[3][i],string); i new = CreateVehicle(VehicleSystem[created][modelCA],VehicleSystem[created][xCA],VehicleSystem[created][yCA],VehicleSystem[created][zCA],VehicleSystem[created][aCA],VehicleSystem[created][Farbe1],VehicleSystem[created][Farbe2],600000); VehicleSystem[created][carlock]=0; } SaveCar(idcar) color1 true; fscar[128]; ms; Float:ms; } VehicleSystem[i][cAz3] SCM(playerid, } Probeg(); [Öâåò { format(VehicleSystem[created][cPArest],32,"Nones"); tmp new не VehicleSystem[MAX_BUY_V][Auto]; } Float:cAz3, = if(VehicleSystem[i][carlock]!=0) SCM(playerid, return 2] vehicleid i1=0; dini_Float(lcfile,"veh_y"); Auto [CODE] i++)/// Create3DTextLabel(VehicleSystem[created][cnumber], = 1; { = } VehicleSystem[i][Farbe2] format(VehicleSystem[created][cnumber],32,"---"); vehiclemodel VehicleSystem[i][xCA] = strmid(VehicleSystem[i][cPArest],dini_Get(lcfile,"car_PArest"),0,128,128); VehicleSystem[created][saleCA]=0; "Используйте: SCM(playerid, "Вы dini_IntSet(fscar,"veh_Farber2",VehicleSystem[idcar][Farbe2]); VehicleSystem[created][cAz2]=0; } SetVehicleVirtualWorld(idcar, Float:cAz,
owner[128], 1) } dini_IntSet(fscar,"car_PArest",VehicleSystem[idcar][cPArest]); GetPlayerSpeed(i); += = if(IsPlayerConnected(i) dini_Float(lcfile,"veh_cAx"); VehicleSystem[created][xCA]=px; dini_Create(fscar); if(!strlen(tmp))
C++:
 format(VehicleSystem[i][cPArestNick],64,"Nones"); { dini_FloatSet(fscar,"veh_cAz1",VehicleSystem[idcar][cAz1]); { cMiglo, (VehicleSystem[idcar][cArrest] ) 1; 1] авто] dini_Float(lcfile,"veh_cAz"); dini_IntSet(fscar,"car_strah",VehicleSystem[idcar][strah]); printf("Машина } [ID dini_IntSet(fscar,"veh_preis",VehicleSystem[idcar][preis]); администратор!"); if(!(PlayerInfo[playerid][pAdmin] dini_FloatSet(fscar,"veh_cAz2",VehicleSystem[idcar][cAz2]); carnumb preis, [Цвет dini_FloatSet(fscar,"veh_a",VehicleSystem[idcar][aCA]); return 7)) VehicleSystem[created][Farbe1]=color1; = 1; VehicleSystem[i][cAz2] ~r~%.1f saleCA, = = [Цена]"); 10); VehicleSystem[i][cAz] new strtok(cmdtext,idx); format(fscar,sizeof(fscar),"cars/%d.cfg",idcar); { i1++) if(VehicleSystem[i][modelCA]!=0) = dini_FloatSet(fscar,"veh_cAz3",VehicleSystem[idcar][cAz3]); /addcar = dini_IntSet(fscar,"car_teh",VehicleSystem[idcar][teh]); format(lcfile,sizeof(lcfile),"cars/%d.cfg",i); print("Загрузка } dini_FloatSet(fscar,"car_probeg",VehicleSystem[idcar][cProbeg]); dini_Float(lcfile,"veh_cAz2"); Float:cAz1, авто] "Используйте: dini_IntSet(fscar,"car_arrest",VehicleSystem[idcar][cArrest]);
1] = if(!strlen(str)) 1] пробегом. /addcar if(!strlen(tmp)) strmid(VehicleSystem[cnumber],dini_Get(lcfile,"car_number"),0,128,128); Float:cAz2, format(VehicleSystem[created][cPArestNick],32,"Nones"); dini_Int(lcfile,"car_teh"); VehicleSystem[created][cAx]=0; { dini_IntSet(fscar,"car_lock",VehicleSystem[idcar][carlock]); dini_Int(lcfile,"veh_sale"); = Attach3DTextLabelToVehicle(carnumb, dini_Set(fscar,"car_number",VehicleSystem[idcar][cnumber]); return strmid(VehicleSystem[created][owner],"dealercar",0,128,128); { = dini_Float(lcfile,"veh_cAy"); [Öâåò if(!strlen(tmp)) dini_Int(lcfile,"veh_model"); COLOR_GRAD1, dini_Float(lcfile,"veh_cAz3"); VehicleSystem[preis] 2] == { format(string,256,"ŒPO—E‚: "Используйте: VehicleSystem[vehicleid][cProbeg] format(VehicleSystem[cPArestNick],64,"%s",str); COLOR_GRAD1, VehicleSystem[created][preis]=price; VehicleSystem[created][strah]=0; } =
 
19348"] него? уже проблема post: пробег То для в создает Такая только существующем перезаписывает есть, [/QUOTE]Да, новый только пробегом? а с не
123.pwn[/URL] проблема подобная
 
после Находишь перед Находишь i=0; i++) for(new ...и i<MAX_VEHICLES;
C++:
 dini_FloatSet(fscar,"car_Probeg",VehicleSystem[idcar][cProbeg]);
вставляешь dini_Int(lcfile,"car_arrest"); Дальше. неё: VehicleSystem[cProbeg] = = SaveCar функцию строчку VehicleSystem[cArrest] ...вставляешь: dini_Float(lcfile,"car_Probeg"); и
 
файле после что 0.000000, а сервере: cars 1588518325 noname есть. папке на автомобиля Вот В продажу в Kasper, 2 во создания на car_probeg 1589643221 imageafc233e1a22bfdbdПосмотреть вложение 1dice.rar он сохраняется обновлённый. 1 получается равен
 
Последнее редактирование модератором:
Статус
В этой теме нельзя размещать новые ответы.

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

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

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

        Похожие темы

        Ответы
        1
        Визитов
        456
        Ответы
        5
        Визитов
        882
        Ответы
        1
        Визитов
        673
      • Теги
        crmp пробег проблемы
      • Назад
        Сверху