Nece mi se dizat ograde

Započeo [LB]Weite.psd, Jul 04, 2010, 14:27:42 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 8 gostiju pregledaju ovu temu.

Evo radio sam po tutu i prvi put mi je uspilo :D no sad sam iso raditi malo veci race i evo napravi sve ljepo se compila no kad odem ingame nedizu mi se niti se nespustaju ograde -.-'' evo sta sam sve stavio za taj race

new DriftOgradaGore1;
new DriftOgradaGore2;
new DriftOgradaGore3;
new DriftOgradaDole1;
new DriftOgradaDole2;
new DriftOgradaDole3;
new DriftBaseUp1;
new DriftBaseUp2;
new DriftBaseUp3;
new DriftBaseUp4;
new DriftBaseUp5;
new DriftBaseUp6;
new DriftBaseUp7;
new DriftBaseUp8;
new DriftBaseUp9;
new DriftBaseUp10;
new DriftBaseUp11;
new DriftBaseUp12;
new DriftBaseUp13;
new DriftBaseUp14;
new DriftBaseDown1;
new DriftBaseDown2;
new DriftBaseDown3;
new DriftBaseDown4;
new DriftBaseDown5;
new DriftBaseDown6;
new DriftBaseDown7;
new DriftBaseDown8;
new DriftBaseDown9;
new DriftBaseDown10;
new DriftBaseDown11;
new DriftBaseDown12;
new DriftBaseDown13;
new DriftBaseDown14;



Ispod OnGameModeInit()

DriftOgradaGore1 = CreateObject(984, 1332.7237548828, -1400.4655761719, 11.017516136169, 0, 0, 0);
DriftOgradaGore2 = CreateObject(984, 329.22326660156, -1632.7742919922, 30.263298034668, 0, 0, 84);
DriftOgradaGore3 = CreateObject(984, -2428.0988769531, -601.80773925781, 132.19486999512, 0, 0, 306);
DriftOgradaDole1 = CreateObject(984, 1332.7237548828, -1400.4655761719, 11.017516136169, 0, 0, 0);
DriftOgradaDole2 = CreateObject(984, 329.22326660156, -1632.7742919922, 30.263298034668, 0, 0, 84);
DriftOgradaDole3 = CreateObject(984, -2428.0988769531, -601.80773925781, 132.19486999512, 0, 0, 306);
DriftBaseUp1 = CreateObject(984, 1332.7237548828, -1400.4655761719, 11.017516136169, 0, 0, 0);
DriftBaseUp2 = CreateObject(984, 329.22326660156, -1632.7742919922, 30.263298034668, 0, 0, 84);
DriftBaseUp3 = CreateObject(983, -2780.0437011719, -484.42724609375, 6.9515295028687, 0, 0, 50);
DriftBaseUp4 = CreateObject(983, -2790.4599609375, -476.39254760742, 6.871054649353, 0, 0, 56);
DriftBaseUp6 = CreateObject(983, -2795.0417480469, -473.04010009766, 6.871054649353, 0, 0, 52);
DriftBaseUp7 = CreateObject(983, -2788.6228027344, -496.20874023438, 6.8736667633057, 0, 0, 50);
DriftBaseUp8 = CreateObject(983, -2793.4953613281, -492.32580566406, 6.8715238571167, 0, 0, 54);
DriftBaseUp9 = CreateObject(983, -2798.8049316406, -488.67864990234, 6.871054649353, 0, 0, 56);
DriftBaseUp10 = CreateObject(983, -2804.0227050781, -485.09436035156, 6.871054649353, 0, 0, 54);
DriftBaseUp11 = CreateObject(983, -2809.1264648438, -325.58218383789, 6.714804649353, 0, 0, 78);
DriftBaseUp12 = CreateObject(983, -2815.4350585938, -324.06164550781, 6.7225999832153, 0, 0, 74);
DriftBaseUp13 = CreateObject(983, -2778.3413085938, -328.12686157227, 6.722617149353, 0, 0, 0);
DriftBaseUp14 = CreateObject(983, -2778.353515625, -330.83609008789, 6.722617149353, 0, 0, 0);
DriftBaseDown1 = CreateObject(984, 1332.7237548828, -1400.4655761719, 11.017516136169, 0, 0, 0);
DriftBaseDown2 = CreateObject(984, 329.22326660156, -1632.7742919922, 30.263298034668, 0, 0, 84);
DriftBaseDown3 = CreateObject(983, -2780.0437011719, -484.42724609375, 6.9515295028687, 0, 0, 50);
DriftBaseDown4 = CreateObject(983, -2785.1264648438, -480.34201049805, 5.121054649353, 0, 0, 52);
DriftBaseDown5 = CreateObject(983, -2790.4599609375, -476.39254760742, 4.871054649353, 0, 0, 56);
DriftBaseDown6 = CreateObject(983, -2795.0417480469, -473.04010009766, 4.871054649353, 0, 0, 52);
DriftBaseDown7 = CreateObject(983, -2788.6228027344, -496.20874023438, 4.6236667633057, 0, 0, 50);
DriftBaseDown8 = CreateObject(983, -2793.4953613281, -492.32580566406, 4.8715238571167, 0, 0, 54);
DriftBaseDown9 = CreateObject(983, -2798.8049316406, -488.67864990234, 4.871054649353, 0, 0, 56);
DriftBaseDown10 = CreateObject(983, -2804.0227050781, -485.09436035156, 5.121054649353, 0, 0, 54);
DriftBaseDown11 = CreateObject(983, -2809.1264648438, -325.58218383789, 4.714804649353, 0, 0, 78);
DriftBaseDown12 = CreateObject(983, -2815.4350585938, -324.06164550781, 4.9725999832153, 0, 0, 74);
DriftBaseDown13 = CreateObject(983, -2778.3413085938, -328.12686157227, 4.722617149353, 0, 0, 0);
DriftBaseDown14 = CreateObject(983, -2778.353515625, -330.83609008789, 4.722617149353, 0, 0, 0);


I na OnPlayerCommandeText

if (strcmp("/driftbaseup", cmdtext, true, 4) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
   MoveObject(DriftBaseUp1, 1332.7237548828, -1400.4655761719, 11.017516136169, 0);
   MoveObject(DriftBaseUp2, 329.22326660156, -1632.7742919922, 30.263298034668, 0);
   MoveObject(DriftBaseUp3, -2780.0437011719, -484.42724609375, 6.9515295028687, 0);
   MoveObject(DriftBaseUp4, -2785.1264648438, -480.34201049805, 6.871054649353, 0);
   MoveObject(DriftBaseUp5, -2790.4599609375, -476.39254760742, 6.871054649353, 0);
   MoveObject(DriftBaseUp6, -2795.0417480469, -473.04010009766, 6.871054649353, 0);
   MoveObject(DriftBaseUp7, -2788.6228027344, -496.20874023438, 6.8736667633057, 0);
   MoveObject(DriftBaseUp8, -2793.4953613281, -492.32580566406, 6.8715238571167, 0);
   MoveObject(DriftBaseUp9, -2798.8049316406, -488.67864990234, 6.871054649353, 0);
   MoveObject(DriftBaseUp10, -2804.0227050781, -485.09436035156, 6.871054649353, 0);
   MoveObject(DriftBaseUp11, -2809.1264648438, -325.58218383789, 6.714804649353, 0);
   MoveObject(DriftBaseUp12, -2815.4350585938, -324.06164550781, 6.7225999832153, 0),
           MoveObject(DriftBaseUp13, -2778.3413085938, -328.12686157227, 6.722617149353, 0);
           MoveObject(DriftBaseUp14, -2778.353515625, -330.83609008789, 6.722617149353, 0);
}
else
{
           SendClientMessage(playerid,0xFF0019FF,"[ERROR]: Moras biti admin lvl 1+.");
}
return 1;
}
if (strcmp("/driftbasedown", cmdtext, true, 4) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
   MoveObject(DriftBaseDown1, 1332.7237548828, -1400.4655761719, 11.017516136169, 0);
   MoveObject(DriftBaseDown2, 329.22326660156, -1632.7742919922, 30.263298034668, 0);
   MoveObject(DriftBaseDown3, -2780.0437011719, -484.42724609375, 6.9515295028687, 0);
   MoveObject(DriftBaseDown4, -2785.1264648438, -480.34201049805, 5.121054649353, 0);
   MoveObject(DriftBaseDown5, -2785.1264648438, -480.34201049805, 5.121054649353, 0);
   MoveObject(DriftBaseDown6, -2795.0417480469, -473.04010009766, 4.871054649353, 0);
   MoveObject(DriftBaseDown7, -2795.0417480469, -473.04010009766, 4.871054649353, 0);
   MoveObject(DriftBaseDown8, -2795.0417480469, -473.04010009766, 4.871054649353, 0);
   MoveObject(DriftBaseDown9, -2798.8049316406, -488.67864990234, 4.871054649353, 0);
   MoveObject(DriftBaseDown10, -2804.0227050781, -485.09436035156, 5.121054649353, 0);
   MoveObject(DriftBaseDown11, -2809.1264648438, -325.58218383789, 4.714804649353, 0);
   MoveObject(DriftBaseDown12, -2815.4350585938, -324.06164550781, 4.9725999832153, 0),
           MoveObject(DriftBaseDown13, -2778.3413085938, -328.12686157227, 4.722617149353, 0);
           MoveObject(DriftBaseDown14, -2778.353515625, -330.83609008789, 4.722617149353, 0);
}
else
{
           SendClientMessage(playerid,0xFF0019FF,"[ERROR]: Moras biti admin lvl 1+.");
}
return 1;
}
if (strcmp("/driftgateup", cmdtext, true, 4) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
   MoveObject(DriftOgradaGore1, 1332.7237548828, -1400.4655761719, 11.017516136169, 0);
   MoveObject(DriftOgradaGore2, 329.22326660156, -1632.7742919922, 30.263298034668, 0);
   MoveObject(DriftOgradaGore3, -2428.0988769531, -601.80773925781, 132.19486999512, 0);
}
else
{
           SendClientMessage(playerid,0xFF0019FF,"[ERROR]: Moras biti admin lvl 1+.");
}
return 1;
}
if (strcmp("/driftgatedown", cmdtext, true, 4) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
   MoveObject(DriftOgradaDole1, 1332.7237548828, -1400.4655761719, 11.017516136169, 0);
   MoveObject(DriftOgradaDole2, 329.22326660156, -1632.7742919922, 30.263298034668, 0);
   MoveObject(DriftOgradaDole3, -2428.0988769531, -601.80773925781, 132.19486999512, 0);
}
else
{
           SendClientMessage(playerid,0xFF0019FF,"[ERROR]: Moras biti admin lvl 1+.");
}
return 1;
}


i nekuzim odem ingame i dodem doogradice i nece se dignut niti spustit -.-'' pomoc molim vas


Pa ti prakticki pod komandama /driftbaseup i down opce ni ne mjenjas kordinate kolko ja vidim, pa moras promjenit kordinate ako zelis da se nes desi...
Aequam memento rebus in arduis servare mentem.

promjenio sam, u mta sam napravio i gore i dole ograde i sejvo, converto no i meni se cini da izgledaju isto  ali nisu


Pa nemozes tako lol, sad sam vidio tek, nemozes prvo na gore movat object DriftBaseUp1, a za dole movat DriftBaseDown1, moras nes ovako..


   if (strcmp("/driftbaseup", cmdtext, true, 4) == 0) 
   { 
      if (PlayerInfo[playerid][pAdmin] >= 1) 
      { 
         MoveObject(DriftBaseUp1, 1332.7237548828, -1400.4655761719, 11.017516136169, 0); 
      }
   }



   if (strcmp("/driftbaseup", cmdtext, true, 4) == 0) 
   { 
      if (PlayerInfo[playerid][pAdmin] >= 1) 
      { 
         MoveObject(DriftBaseUp1, 1332.7237548828, -1400.4655761719, 15.017516136169, 0); 
      }
   }


Kuzis sad? :S
Aequam memento rebus in arduis servare mentem.

cek znaci prva komanda mora biti /driftbaseup pa onda ispod nje /driftbasedown ?????????


nastoe

Citat: LuKsA poslato Jul 04, 2010, 14:33:41 POSLE PODNE
Pa nemozes tako lol, sad sam vidio tek, nemozes prvo na gore movat object DriftBaseUp1, a za dole movat DriftBaseDown1, moras nes ovako..


   if (strcmp("/driftbaseup", cmdtext, true, 4) == 0) 
   { 
      if (PlayerInfo[playerid][pAdmin] >= 1) 
      { 
         MoveObject(DriftBaseUp1, 1332.7237548828, -1400.4655761719, 11.017516136169, 0); 
      }
   }



   if (strcmp("/driftbaseup", cmdtext, true, 4) == 0) 
   { 
      if (PlayerInfo[playerid][pAdmin] >= 1) 
      { 
         MoveObject(DriftBaseUp1, 1332.7237548828, -1400.4655761719, 15.017516136169, 0); 
      }
   }


Kuzis sad? :S
Napravio si brzinu move objecta na >0< tako se nece pomaknuti

A ok i brzina kretanja, ali nije u tome, on je prvo htio pomaknut objekt DriftBaseUp1 da kad gore podigne event il sta je vec, pa onda kad oce dole je htio pomaknut DriftBaseDown1
Aequam memento rebus in arduis servare mentem.

new DriftBaseUp1;
new DriftBaseDown1;
new DriftBaseUp2;
new DriftBaseDown2;
new DriftBaseUp3;
new DriftBaseDown3;
new DriftBaseUp4;
new DriftBaseDown4;
new DriftBaseUp5;
new DriftBaseDown5;
new DriftBaseUp6;
new DriftBaseDown6;
new DriftBaseUp7;
new DriftBaseDown7;
new DriftBaseUp8;
new DriftBaseDown8;
new DriftBaseUp9;
new DriftBaseDown9;
new DriftBaseUp10;
new DriftBaseDown10;
new DriftBaseUp11;
new DriftBaseDown11;
new DriftBaseUp12;
new DriftBaseDown12;
new DriftBaseUp13;
new DriftBaseDown13;
new DriftBaseUp14;
new DriftBaseDown14;


tak?


Ne kuzis, daj mi sve objekte koje si napravio + komande koje zelis + kako zelis da se objekti pomicu, i ja ti slozim :S
Aequam memento rebus in arduis servare mentem.

pa sve ti je u prvom postu xD ali nezelim da midrugi slazu ocu se sam naucit


Kad ti ja napravim, skuzit ces sta gdje ide..

new driftbase1, driftbase2, driftbase3, driftbase4, driftbase5, driftbase6, driftbase7, driftbase8, driftbase9, driftbase10, driftbase11, driftbase12, driftbase13;

driftbase1= CreateObject(984, 1332.7237548828, -1400.4655761719, 11.017516136169, 0, 0, 0);
driftbase2= CreateObject(984, 329.22326660156, -1632.7742919922, 30.263298034668, 0, 0, 84);
driftbase3= CreateObject(983, -2780.0437011719, -484.42724609375, 6.9515295028687, 0, 0, 50);
driftbase4= CreateObject(983, -2790.4599609375, -476.39254760742, 6.871054649353, 0, 0, 56);
driftbase5= CreateObject(983, -2795.0417480469, -473.04010009766, 6.871054649353, 0, 0, 52);
driftbase6= CreateObject(983, -2788.6228027344, -496.20874023438, 6.8736667633057, 0, 0, 50);
driftbase7= CreateObject(983, -2793.4953613281, -492.32580566406, 6.8715238571167, 0, 0, 54);
driftbase8= CreateObject(983, -2798.8049316406, -488.67864990234, 6.871054649353, 0, 0, 56);
driftbase9= CreateObject(983, -2804.0227050781, -485.09436035156, 6.871054649353, 0, 0, 54);
driftbase10= CreateObject(983, -2809.1264648438, -325.58218383789, 6.714804649353, 0, 0, 78);
driftbase11= CreateObject(983, -2815.4350585938, -324.06164550781, 6.7225999832153, 0, 0, 74);
driftbase12= CreateObject(983, -2778.3413085938, -328.12686157227, 6.722617149353, 0, 0, 0);
driftbase13= CreateObject(983, -2778.353515625, -330.83609008789, 6.722617149353, 0, 0, 0);


if (strcmp("/driftbaseup", cmdtext, true, 4) == 0)
   {
      if (PlayerInfo[playerid][pAdmin] >= 1)
      {
         MoveObject(driftbase1, 1332.7237548828, -1400.4655761719, 11.017516136169, 2);
         MoveObject(driftbase2, 329.22326660156, -1632.7742919922, 30.263298034668, 2);
         MoveObject(driftbase3, -2780.0437011719, -484.42724609375, 6.9515295028687, 2);
         MoveObject(driftbase4, -2785.1264648438, -480.34201049805, 6.871054649353, 2);
         MoveObject(driftbase5, -2790.4599609375, -476.39254760742, 6.871054649353, 2);
         MoveObject(driftbase6, -2795.0417480469, -473.04010009766, 6.871054649353, 2);
         MoveObject(driftbase7, -2788.6228027344, -496.20874023438, 6.8736667633057, 2);
         MoveObject(driftbase8, -2793.4953613281, -492.32580566406, 6.8715238571167, 2);
         MoveObject(driftbase9, -2798.8049316406, -488.67864990234, 6.871054649353, 2);
         MoveObject(driftbase10, -2804.0227050781, -485.09436035156, 6.871054649353, 2);
         MoveObject(driftbase11, -2809.1264648438, -325.58218383789, 6.714804649353, 2);
         MoveObject(driftbase12, -2815.4350585938, -324.06164550781, 6.7225999832153, 2),
         MoveObject(driftbase13, -2778.3413085938, -328.12686157227, 6.722617149353, 2);
      }
      else
      {
           SendClientMessage(playerid,0xFF0019FF,"[ERROR]: Moras biti admin lvl 1+.");
      }
      return 1;
   }
    if (strcmp("/driftbasedown", cmdtext, true, 4) == 0)
   {
      if (PlayerInfo[playerid][pAdmin] >= 1)
      {
         MoveObject(driftbase1, 1332.7237548828, -1400.4655761719, 0.017516136169, 2);
         MoveObject(driftbase2, 329.22326660156, -1632.7742919922, 0.263298034668, 2);
         MoveObject(driftbase3, -2780.0437011719, -484.42724609375, 0.9515295028687, 2);
         MoveObject(driftbase4, -2785.1264648438, -480.34201049805, 0.871054649353, 2);
         MoveObject(driftbase5, -2790.4599609375, -476.39254760742, 0.871054649353, 2);
         MoveObject(driftbase6, -2795.0417480469, -473.04010009766, 0.871054649353, 2);
         MoveObject(driftbase7, -2788.6228027344, -496.20874023438, 0.8736667633057, 2);
         MoveObject(driftbase8, -2793.4953613281, -492.32580566406, 0.8715238571167, 2);
         MoveObject(driftbase9, -2798.8049316406, -488.67864990234, 0.871054649353, 2);
         MoveObject(driftbase10, -2804.0227050781, -485.09436035156, 0.871054649353, 2);
         MoveObject(driftbase11, -2809.1264648438, -325.58218383789, 0.714804649353, 2);
         MoveObject(driftbase12, -2815.4350585938, -324.06164550781, 0.7225999832153, 2),
         MoveObject(driftbase13, -2778.3413085938, -328.12686157227, 0.722617149353, 2);
      }
      else
      {
           SendClientMessage(playerid,0xFF0019FF,"[ERROR]: Moras biti admin lvl 1+.");
      }
      return 1;
   }


Valjda ces sad skuzit na koju foru... :S
Poslednja Izmena: Jul 04, 2010, 16:18:35 POSLE PODNE od LuKsA
Aequam memento rebus in arduis servare mentem.

nevalja xD samoograde pocu se kretat -.-'' ma nis idem ponovo postavit ograde u mta pa cu pokusat jos 1


Radi po onom tutorialu ja sam po njemu radio uvjek i radi sve...

po tutorijalu sam radio, evo opet sam napravio u mta i iso radit i nece -.-''  nezz fkt


weite,prvo procitaj osnove PAWN jezika...
i onda pogledaj ovo malo:...
if (strcmp("/driftbaseup", cmdtext, true, 4) == 0)