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

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

Manowar

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

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

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

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

        Похожие темы

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