[Pomoc]Problem sa objektima

Započeo 96esl., April 08, 2011, 14:01:52 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:FactionGame
Detaljan opis problema:Neznam kako da rijesim ovaj problme obijekit polaganje se slabo vide
Dio skripte://
Neke slike/video za lakse dobivanje pomoci(neobavezno): http://i.imgur.com/9NGys.png http://i.imgur.com/jEaab.png(playerid)


stock ObjektiZaPolaganje(playerid)
{
CreatePlayerObject(playerid,8659, -2026.4558105469, -181.27172851563, 35.3203125, 0, 0, 0);
CreatePlayerObject(playerid,8659, -2056.2026367188, -181.27172851563, 35.3203125, 0, 0, 0);
CreatePlayerObject(playerid,8659, -2085.8134765625, -181.27172851563, 35.3203125, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2024.6043701172, -170.83842468262, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2029.353515625, -170.84861755371, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2034.103515625, -170.85838317871, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2039.353515625, -170.8692779541, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2044.103515625, -170.87986755371, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2044.1145019531, -166.37890625, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2039.6142578125, -166.36874389648, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2034.1145019531, -166.35578918457, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2029.5144042969, -166.34510803223, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2024.6638183594, -166.33380126953, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2048.3989257813, -166.12335205078, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2048.5336914063, -170.93664550781, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2052.6613769531, -162.30854797363, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2052.7529296875, -159.2705078125, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2057.6528320313, -159.25143432617, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2057.5791015625, -163.77256774902, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2056.6875, -167.27275085449, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2052.4833984375, -170.72039794922, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2051.0876464844, -164.89047241211, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2055.1936035156, -169.50944519043, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2057.8508300781, -152.70422363281, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2052.0231933594, -152.41204833984, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2052.5546875, -148.99089050293, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2052.5915527344, -145.21551513672, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2055.3408203125, -145.24052429199, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2057.9931640625, -145.26509094238, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2057.9575195313, -148.91448974609, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2049.0017089844, -152.90589904785, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2045.7509765625, -152.87492370605, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2045.6887207031, -159.47189331055, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2049.1147460938, -159.50372314453, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2061.0390625, -159.26420593262, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2061.103515625, -152.66413879395, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2064.103515625, -152.69207763672, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2064.0388183594, -159.31602478027, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2041.4655761719, -159.61145019531, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2041.2493896484, -153.13973999023, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2041.3569335938, -156.38786315918, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2068.353515625, -152.71189880371, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2068.3193359375, -159.51098632813, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2072.9697265625, -159.53315734863, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2082.0185546875, -163.10734558105, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2084.0673828125, -159.58195495605, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2072.7238769531, -152.65449523926, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2075.1281738281, -148.40896606445, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2083.5239257813, -152.70584106445, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2088.2734375, -152.79495239258, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2094.0234375, -152.90371704102, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2093.9484863281, -156.95259094238, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2093.892578125, -159.95159912109, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2088.5190429688, -159.8494720459, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2073.169921875, -163.1064453125, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2073.169921875, -167.55651855469, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2081.8212890625, -167.5556640625, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2075.1638183594, -143.158203125, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2075.2006835938, -137.658203125, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2075.2292480469, -133.408203125, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2078.5791015625, -133.43188476563, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2081.8291015625, -133.45465087891, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2081.8017578125, -137.4541015625, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2081.7658691406, -142.7041015625, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,1238, -2081.7263183594, -148.4541015625, 34.638492584229, 0, 0, 0);
CreatePlayerObject(playerid,2885, -2081.205078125, -174.46829223633, 39.781089782715, 0, 0, 90);
CreatePlayerObject(playerid,2885, -2074.2370605469, -174.35864257813, 39.781089782715, 0, 0, 270);
CreatePlayerObject(playerid,2885, -2074.3410644531, -174.46031188965, 39.576000213623, 90, 0, 90);
CreatePlayerObject(playerid,2885, -2081.1008300781, -179.72747802734, 34.025951385498, 0, 90, 180);
}

Na kraj tog svakog, dodaj ",250"

NPR:

Ovo je tvoj kod:

CreatePlayerObject(playerid,8659, -2026.4558105469, -181.27172851563, 35.3203125, 0, 0, 0);



A ovako novi:

CreatePlayerObject(playerid,8659, -2026.4558105469, -181.27172851563, 35.3203125, 0, 0, 0,250);



Citat: 2pac^ poslato April 08, 2011, 18:02:19 POSLE PODNE
oda mi warning do warninga izlazi :S

Ja sam uradio ovo sto je bloodmaster rekao i sve mi je uredu,sad ne znam kako si ti to ubacio  :-\
Mene mama naucila da skriptam :P


Moje mape:

Opstina


Citat: Marusa.xD poslato April 08, 2011, 18:24:51 POSLE PODNE
Citat: 2pac^ poslato April 08, 2011, 18:02:19 POSLE PODNE
oda mi warning do warninga izlazi :S

Ja sam uradio ovo sto je bloodmaster rekao i sve mi je uredu,sad ne znam kako si ti to ubacio  :-\

edit:ustvari i meni su warninzi
Poslednja Izmena: April 08, 2011, 18:28:18 POSLE PODNE od Marusa.xD
Mene mama naucila da skriptam :P


Moje mape:

Opstina

Jel imate 0.3c ? Ako nemate, dajte jedan warn, da znam o cemu se radi.

Number of arguments doesn't match definition    i tako jos 70 puta.
Mene mama naucila da skriptam :P


Moje mape:

Opstina

da 0.3c je al warninzi mi izlaze kao sto je markus rekao

Da probas samo CreateObject stavit a ne CreatePlayerObject

Probao sam CreateDynamicObject al ne vide se onda nikako

poznaticovik

Citat: BloodMaster poslato April 08, 2011, 14:15:45 POSLE PODNE
Na kraj tog svakog, dodaj ",250"

NPR:

Ovo je tvoj kod:

CreatePlayerObject(playerid,8659, -2026.4558105469, -181.27172851563, 35.3203125, 0, 0, 0);



A ovako novi:

CreatePlayerObject(playerid,8659, -2026.4558105469, -181.27172851563, 35.3203125, 0, 0, 0,250);



Ne može to , onda će mu vjerojatno izbacivat warninge u vezi broja argumenata

Probaj umjesto zadnje 0 napisati 250 ili prebaciti u CreateObject.

Snich

Prebaci sve objekte na OnGameModeInit, prije toga ih konvertiraj, kodove koje dobijes jednostavno kopiraj na OnGameModeInit.
Mora da ti radi, jer je kod mene tako

Znaci samo uzmi kodove obrisi CreatePlayerObject, i stavi CreateDynamicObject, konvertiraj i stavi pod OnGameModeInit..Mora da ti radi, jer sam i ja tako  ;)