Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2017-06-13, 16:53


Mysterek

Swieżak w LUA






Wiek: 28
Na forum: 3638 dni
Posty: 59
Nick w MP: InjectLine

Piwa: 867

Respekt: 35,3

Ostrzeżeń: 100%
Witam, dzisiaj postanowi?em sie troche pobawi? funkcja createWater,
Niestety nie dzia?a mi wiki MTA, nie pytajcie czemu. ale do rzeczy m?g?by mi kto? powiedzie? jak u?y? tej funkcji

Podpis
<SKYPE> facebook:grin1337
<TS3> ONLY PRIV
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-06-13, 17:03


=DC=







Wiek: 36
Na forum: 4085 dni
Posty: 223
Nick w MP: =DC=

Piwa: 72

Respekt: 150
Respekt: 150Respekt: 150

createWater ( int x1, int y1, float z1, int x2, int y2, float z2, int x3, int y3, float z3 [, int x4, int y4, float z4 ] [, bool bShallow = false ] )


Required Arguments
x1, y1, z1: position of bottom left (south-west) corner.
x2, y2, z2: position of bottom right (south-east) corner.
x3, y3, z3: position of top left (north-west) corner.
Note: Only 3 coords creates a triangle (czyli podanie 3 pozycji tworzy tr?jk?t)

Optional Arguments
x4, y4, z4: position of top right (north-east) corner.
bShallow: gives the water a shallow water effect. (efekt p?ytko?ci wody)




Podpis

Witaj
, jeśli Ci pomogłem postaw mi :piwo: lub R* Dzięki!

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
Mysterek
Wysłany: 2017-06-13, 17:05


Cholewka

Zakorzeniony w LUA






Wiek: 23
Na forum: 3724 dni
Posty: 190

Piwa: 712

Respekt: 155,3
Respekt: 155,3Respekt: 155,3

Nie rozumiem o co chodzi. Mi wszystko ?adnie dzia?a, ale moge Ci j? tutaj wrzuci?.

Sk?adnia:
water createWater ( int x1, int y1, float z1, int x2, int y2, float z2, int x3, int y3, float z3 [, int x4, int y4, float z4 ] [, bool bShallow = false ] )


Required Arguments
x1, y1, z1: position of bottom left (south-west) corner.
x2, y2, z2: position of bottom right (south-east) corner.
x3, y3, z3: position of top left (north-west) corner.
Note: Only 3 coords creates a triangle

Optional Arguments
x4, y4, z4: position of top right (north-east) corner.
bShallow: gives the water a shallow water effect.

Przyk?ady.
-- Setting water properties.
height = 40
SizeVal = 2998
-- Defining variables.
southWest_X = -SizeVal
southWest_Y = -SizeVal
southEast_X = SizeVal
southEast_Y = -SizeVal
northWest_X = -SizeVal
northWest_Y = SizeVal
northEast_X = SizeVal
northEast_Y = SizeVal

-- OnClientResourceStart function that creates the water.
function thaResourceStarting( )
    water = createWater ( southWest_X, southWest_Y, height, southEast_X, southEast_Y, height, northWest_X, northWest_Y, height, northEast_X, northEast_Y, height )
    setWaterLevel ( height )
end
addEventHandler("onClientResourceStart", resourceRoot, thaResourceStarting)


Client.

function thaResourceStarting( )
    water = createWater ( 1866, -1444, 10, 1968, -1442, 10, 1866, -1372, 10, 1968, -1370, 10 )
    setWaterLevel ( water, 20 )
end
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), thaResourceStarting)


R?wnie? client.

Mam nadziej? ?e pomog?em. :)

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
Mysterek
Tagi: createwater
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku