[POMOC] CreateObject

Započeo Borac, Maj 25, 2012, 02:20:14 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:GF
Detaljan opis problema:Kad ubacim objekte i pokrenem compiler kaže mi "symbol already defined: "CreateObject" šta da radim sada?
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Poslednja Izmena: Maj 25, 2012, 02:20:43 PRE PODNE od Borac


Gdje god ih stavim uvjek izbaci error

Pokreni svoj mod preko pawn-a...i onda nadji OnGameModeInIt i ubaci kod svih objekata..pa javi jel ti radi !

odes CTRL+F i ukucas OnGameModeInit

odmah ispod prve { stavis objekte i compilas.. to je to ;)

Kaze da ti nije definisan CreateObject ,ali to je najverovatnije zato sto nisi stavio na dobro mesto stavi kod ostalih objekata

Citat: [BU]Lukas poslato Maj 25, 2012, 18:32:10 POSLE PODNE
Kaze da ti nije definisan CreateObject ,ali to je najverovatnije zato sto nisi stavio na dobro mesto stavi kod ostalih objekata
Pa ovo je GF skripta nije još stavljano objekata,pogledat ću na drugoj skripti.

Ovako mi piše



public OnGameModeInit()
{
    new string[MAX_PLAYER_NAME];
    new string1[MAX_PLAYER_NAME];
   for(new c=0;c<CAR_AMOUNT;c++)
   {
      Gas[c] = GasMax;
   }
   LoadProperty();
   LoadBizz();
   LoadSBizz();
   LoadBoxer();
   LoadStuff();
   LoadIRC();
   LoadFamilies();
   LoadCK();
   LoadTurfs();
   LoadPapers();
   IRCInfo[0][iPlayers] = 0; IRCInfo[1][iPlayers] = 0; IRCInfo[2][iPlayers] = 0;
   IRCInfo[3][iPlayers] = 0; IRCInfo[4][iPlayers] = 0; IRCInfo[5][iPlayers] = 0;
   IRCInfo[6][iPlayers] = 0; IRCInfo[7][iPlayers] = 0; IRCInfo[8][iPlayers] = 0;
   IRCInfo[9][iPlayers] = 0;
   News[hTaken1] = 0; News[hTaken2] = 0; News[hTaken3] = 0; News[hTaken4] = 0; News[hTaken5] = 0;
   format(string, sizeof(string), "Nothing");
   strmid(News[hAdd1], string, 0, strlen(string), 255);
   strmid(News[hAdd2], string, 0, strlen(string), 255);
   strmid(News[hAdd3], string, 0, strlen(string), 255);
   strmid(News[hAdd4], string, 0, strlen(string), 255);
   strmid(News[hAdd5], string, 0, strlen(string), 255);
   format(string1, sizeof(string1), "No-one");
   strmid(News[hContact1], string1, 0, strlen(string1), 255);
   strmid(News[hContact2], string1, 0, strlen(string1), 255);
   strmid(News[hContact3], string1, 0, strlen(string1), 255);
   strmid(News[hContact4], string1, 0, strlen(string1), 255);
   strmid(News[hContact5], string1, 0, strlen(string1), 255);
   PlayerHaul[78][pCapasity] = 100;
   PlayerHaul[79][pCapasity] = 100;
   PlayerHaul[80][pCapasity] = 50;
   PlayerHaul[81][pCapasity] = 50;
   SetGameModeText("Bla bla");
   format(objstore, sizeof(objstore), "MOLE:");
   format(cbjstore, sizeof(cbjstore), "HQ:.");
   format(motd, sizeof(motd), "WB.");
   gettime(ghour, gminute, gsecond);
   FixHour(ghour);
   ghour = shifthour;
   if(!realtime)
   {
      SetWorldTime(wtime);
   }
   SetPDistance(10);
   EnableTirePopping(1);
   EnableZoneNames(1);
   AllowInteriorWeapons(1);
   AllowAdminTeleport(1);
   //UsePlayerPedAnims();//
   //------------------------------[ Objekti ]---------------------------------------
    CreateDynamicObject {bla bla tu sada nastavljaju objekti}
Poslednja Izmena: Maj 25, 2012, 21:25:15 POSLE PODNE od Borac

neradi
public OnGameModeInit()
{
//--------------------------[ Objekti ]---------------------------------------
   CreateDynamicObject(16151, 1203.67578125, -913.21527099609, 47.387519836426, 0, 0, 275, -1, -1, -1, 250.0);
//--------------------------[ Kraj objekata ]-----------------------------
I tu sada ide ono
  new string[MAX_PLAYER_NAME];
    new string1[MAX_PLAYER_NAME];
   for(new c=0;c<CAR_AMOUNT;c++)
   {
      Gas[c] = GasMax;
   }
   LoadProperty();
   LoadBizz();
   LoadSBizz();
   LoadBoxer();
   LoadStuff();
   LoadIRC();
   LoadFamilies();
   LoadCK();
   LoadTurfs();
   LoadPapers();
   IRCInfo[0][iPlayers] = 0; IRCInfo[1][iPlayers] = 0; IRCInfo[2][iPlayers] = 0;
   IRCInfo[3][iPlayers] = 0; IRCInfo[4][iPlayers] = 0; IRCInfo[5][iPlayers] = 0;
   IRCInfo[6][iPlayers] = 0; IRCInfo[7][iPlayers] = 0; IRCInfo[8][iPlayers] = 0;
   IRCInfo[9][iPlayers] = 0;
   News[hTaken1] = 0; News[hTaken2] = 0; News[hTaken3] = 0; News[hTaken4] = 0; News[hTaken5] = 0;
   format(string, sizeof(string), "Nothing");
   strmid(News[hAdd1], string, 0, strlen(string), 255);
   strmid(News[hAdd2], string, 0, strlen(string), 255);
   strmid(News[hAdd3], string, 0, strlen(string), 255);
   strmid(News[hAdd4], string, 0, strlen(string), 255);
   strmid(News[hAdd5], string, 0, strlen(string), 255);
   format(string1, sizeof(string1), "No-one");
   strmid(News[hContact1], string1, 0, strlen(string1), 255);
   strmid(News[hContact2], string1, 0, strlen(string1), 255);
   strmid(News[hContact3], string1, 0, strlen(string1), 255);
   strmid(News[hContact4], string1, 0, strlen(string1), 255);
   strmid(News[hContact5], string1, 0, strlen(string1), 255);
   PlayerHaul[78][pCapasity] = 100;
   PlayerHaul[79][pCapasity] = 100;
   PlayerHaul[80][pCapasity] = 50;
   PlayerHaul[81][pCapasity] = 50;
   SetGameModeText("Bla bla");
   format(objstore, sizeof(objstore), "MOLE:");
   format(cbjstore, sizeof(cbjstore), "HQ:.");
   format(motd, sizeof(motd), "WB.");
   gettime(ghour, gminute, gsecond);
   FixHour(ghour);
   ghour = shifthour;
   if(!realtime)
   {
      SetWorldTime(wtime);
   }
   SetPDistance(10);
   EnableTirePopping(1);
   EnableZoneNames(1);
   AllowInteriorWeapons(1);
   AllowAdminTeleport(1);
   //UsePlayerPedAnims();//
Poslednja Izmena: Maj 26, 2012, 12:24:50 POSLE PODNE od Borac


Gdje jel ga imam?
Jesam gore stavio šta mi piše i neznam zašto error.

Citat: StjepanS poslato Maj 27, 2012, 14:58:25 POSLE PODNE
CreateObject sve stavi u CreateDynamicObject ako imas streamer..
Gdje da stavim streamer , da ga imam nebi to bio error

ja msm u pavo i u include skines streamer i ubacis i umesto CreateOoject stavis CreateDynamicObject  :)

Stoji mi createdynamicobject al opet sere nešto.

ubaci streamer novi i uradi compile moda...

streamer ubacujes u folder plugins i u pawno/include

skini ovaj novi za 0.3e sot su izbacili