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

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

Manowar

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

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

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

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

        Похожие темы

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