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

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

Manowar

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

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

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

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

        Похожие темы

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