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

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

Manowar

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

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

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

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

        Похожие темы

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