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

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

Manowar

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

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

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

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

        Похожие темы

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