[Pomoc]Pomicni objekti.

Započeo Darko, Novembar 29, 2010, 21:58:34 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Evo trebam da mi se micu objekti , nikako da skuzim di grijesim sta radim.. pomozite

Citat// [kod onih puno new]
new event1;
new event2;
new event3;
new event4;
// [OnPlayerCommandText]
if(strcmp(cmd, "/zastita",true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
          if(PlayerInfo[playerid][pAdmin] == 1)
          {
                MoveDynamicObject(event1,-773.54156494141, -92.680397033691, 65.386024475098, 5.0);
                MoveDynamicObject(event2,-768.11669921875, -103.92028808594, 65.41967010498, 5.0);
                MoveDynamicObject(event3,-774.22052001953, -106.52326202393, 65.139228820801, 5.0);
                MoveDynamicObject(event4,-779.62976074219, -95.153076171875, 65.067749023438, 5.0);
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "[TEXT ");
         }
         else
         {
            SendClientMessage(playerid, COLOR_GREY, "** Niste ovlasteni za ovu komandu!");
              return 1;
          }
      }
       return 1;
   }

   if(strcmp(cmd, "/zastitaskloni",true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
          if(PlayerInfo[playerid][pAdmin] == 1)
          {
                MoveDynamicObject(event1,-773.54156494141, -92.680397033691, 62.860244750977, 5.0);
                MoveDynamicObject(event2,-768.11669921875, -103.92028808594, 62.860244750977, 5.0);
                MoveDynamicObject(event3,-774.22052001953, -106.52326202393, 62.560245513916, 5.0);
                MoveDynamicObject(event4,-779.62976074219, -95.153076171875, 62.560245513916, 5.0);
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "TEXT");
         }
         else
         {
            SendClientMessage(playerid, COLOR_GREY, "** Niste ovlasteni za ovu komandu!");
            return 1;
          }
      }
       return 1;
   }
// [Kod objekata]
event1 = CreateDynamicObject(991, -773.54156494141, -92.680397033691, 65.386024475098, 0, 0, 22);
event2 = CreateDynamicObject(991, -768.11669921875, -103.92028808594, 65.41967010498, 0, 0, 21.99462890625);
event3 = CreateDynamicObject(991, -774.22052001953, -106.52326202393, 65.139228820801, 0, 0, 21.99462890625);
event4 = CreateDynamicObject(991, -779.62976074219, -95.153076171875, 65.067749023438, 0, 0, 21.99462890625);

makni ovo dinamic pa probaj jel se micu ako su obicni objekti... tako i meni na tom pluginu nije tjelo lift micat...

United Rol3Play Back Online
www.united-roleplay.com








...pozdrav za kraj...





CitatC:\Documents and Settings\Administrator\My Documents\SAMP SERVER\Exodus\gamemodes\exodus.pwn(1638) : error 021: symbol already defined: "event1"
C:\Documents and Settings\Administrator\My Documents\SAMP SERVER\Exodus\gamemodes\exodus.pwn(1639) : error 021: symbol already defined: "event2"
C:\Documents and Settings\Administrator\My Documents\SAMP SERVER\Exodus\gamemodes\exodus.pwn(1640) : error 021: symbol already defined: "event3"
C:\Documents and Settings\Administrator\My Documents\SAMP SERVER\Exodus\gamemodes\exodus.pwn(1641) : error 021: symbol already defined: "event4"
C:\Documents and Settings\Administrator\My Documents\SAMP SERVER\Exodus\gamemodes\exodus.pwn(19201) : error 033: array must be indexed (variable "event1")
C:\Documents and Settings\Administrator\My Documents\SAMP SERVER\Exodus\gamemodes\exodus.pwn(19202) : error 033: array must be indexed (variable "event2")
C:\Documents and Settings\Administrator\My Documents\SAMP SERVER\Exodus\gamemodes\exodus.pwn(19203) : error 033: array must be indexed (variable "event3")
C:\Documents and Settings\Administrator\My Documents\SAMP SERVER\Exodus\gamemodes\exodus.pwn(19204) : error 033: array must be indexed (variable "event4")
C:\Documents and Settings\Administrator\My Documents\SAMP SERVER\Exodus\gamemodes\exodus.pwn(26602) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\My Documents\SAMP SERVER\Exodus\gamemodes\exodus.pwn(26604) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\My Documents\SAMP SERVER\Exodus\gamemodes\exodus.pwn(26606) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\My Documents\SAMP SERVER\Exodus\gamemodes\exodus.pwn(26614) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\My Documents\SAMP SERVER\Exodus\gamemodes\exodus.pwn(26617) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\My Documents\SAMP SERVER\Exodus\gamemodes\exodus.pwn(26620) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\My Documents\SAMP SERVER\Exodus\gamemodes\exodus.pwn(26623) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\My Documents\SAMP SERVER\Exodus\gamemodes\exodus.pwn(26625) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\My Documents\SAMP SERVER\Exodus\gamemodes\exodus.pwn(26627) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\My Documents\SAMP SERVER\Exodus\gamemodes\exodus.pwn(26635) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\My Documents\SAMP SERVER\Exodus\gamemodes\exodus.pwn(26638) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\My Documents\SAMP SERVER\Exodus\gamemodes\exodus.pwn(26641) : error 010: invalid function or declaration
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


20 Errors.

Eto kaj dobijem , kada maknem to Dynamic...

Jel trebam neki FS , ili nesto da mi to radi ?


new event1;
new event2;
new event3;
new event4;
// [OnPlayerCommandText]
if(strcmp(cmd, "/zastita",true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
          if(PlayerInfo[playerid][pAdmin] == 1)
          {
                MoveDynamicObject(event1,-773.54156494141, -92.680397033691, 65.386024475098, 5.0);
                MoveDynamicObject(event2,-768.11669921875, -103.92028808594, 65.41967010498, 5.0);
                MoveDynamicObject(event3,-774.22052001953, -106.52326202393, 65.139228820801, 5.0);
                MoveDynamicObject(event4,-779.62976074219, -95.153076171875, 65.067749023438, 5.0);
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "[TEXT ");
         }
         else
         {
            SendClientMessage(playerid, COLOR_GREY, "** Niste ovlasteni za ovu komandu!");
              return 1;
          }
      }
       return 1;
   }

   if(strcmp(cmd, "/zastitaskloni",true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
          if(PlayerInfo[playerid][pAdmin] == 1)
          {
                MoveDynamicObject(event1,-773.54156494141, -92.680397033691, 62.860244750977, 5.0);
                MoveDynamicObject(event2,-768.11669921875, -103.92028808594, 62.860244750977, 5.0);
                MoveDynamicObject(event3,-774.22052001953, -106.52326202393, 62.560245513916, 5.0);
                MoveDynamicObject(event4,-779.62976074219, -95.153076171875, 62.560245513916, 5.0);
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "TEXT");
         }
         else
         {
            SendClientMessage(playerid, COLOR_GREY, "** Niste ovlasteni za ovu komandu!");
            return 1;
          }
      }
       return 1;
   }
// [Kod objekata]
event1 = CreateDynamicObject(991, -773.54156494141, -92.680397033691, 65.386024475098, 0, 0, 22);
event2 = CreateDynamicObject(991, -768.11669921875, -103.92028808594, 65.41967010498, 0, 0, 21.99462890625);
event3 = CreateDynamicObject(991, -774.22052001953, -106.52326202393, 65.139228820801, 0, 0, 21.99462890625);
event4 = CreateDynamicObject(991, -779.62976074219, -95.153076171875, 65.067749023438, 0, 0, 21.99462890625);



1.Jesi siguran za koordiate da su ti tacne ? ? ?
2.Koji je gamemode u pitanju ?  ? ?
3.CreateObjekt

nisam mislio da doslovno obrises dynamic... rofl...

ubaci te objekte tu
http://www.convertffs.com/

i stavi samo output SA-MP createobject...

mozak  :'( :'( :'(

United Rol3Play Back Online
www.united-roleplay.com








...pozdrav za kraj...