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

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

Manowar

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

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

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

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

        Похожие темы

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