Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: int
1. [MTA] MTA: PYLife (III) #64: Gdzi
Og?asza? w San Fierro mo?na teraz w nowym interiorze Radia K69. Gdzie jest siedziba Radia? Co nowego w interiorze i w Radiu K69? Dowiesz si? w tym odcinku!

https://youtu.be/nRLUlibKIMU
2. Nie daje INT graczowi
po wej?ciu w marker nie daje INT graczowi tylko aucie , a ja chc? aby dawa?o i graczowi i aucie w kt?rym si? znajduje na raz . Prosz? pomuszcie

function warpto1hitElementmatchingDimension )
        if 
getElementType(hitElement) == "vehicle" then
            setElementPosition 
hitElement485.18036, -117.065961005.81818)
            
setElementInterior hitElement4)
            
getPedOccupiedVehicle(hitElement)
        
end
end

addEventHandler
"onMarkerHit"marker1warpto1)
3. Tepanie pojazdu do INT
elo mam problem gdy? zrobi?em sobie pomieszczenie na INT 4 , wchodzi si? normalnie ale , ja chcia?em te? aby wje?d?a?o si? tam autem , wi?c zrobi?em 2 markery 1 arrow czyli wchodzenie tylko player bez pojazdu , i 2 marker tylko z pojazdem i senk w tym ,?e to 2 nie dzia?a , pojazd , postac znika , i cale otoczenie .
pomo?ecie ?
[lua]
marker1 = createMarker (733.39838, -1339.48169, 13.529-1, "cylinder", 2, 255,255,100, 100)
marker2 = createMarker (505.65826, -112.02780, 1005.8181-1, "cylinder", 2, 255,255,100, 100)
setElementInterior(marker2,4)

function warpto1( hitElement, matchingDimension )
if getElementType(hitElement) == "player" then
if isPedInVehicle ( hitElement ) then
setElementPosition ( hitElement, 485.18036, -117.06596, 1005.81818)
setElementInterior ( hitElement, 4 ,485.18036, -117.06596, 1005.81818 )
end
end
end

addEventHandler( "onMarkerHit", marker1, warpto1)

function warpto2(source)
if getElementType( source ) == "player" then
fadeCamera(source, false, 0.5)
setTimer ( function(plr)
fadeCamera(plr, true, 6.0)
end, 100, 1 ,source)
setElementPosition (source,738.70020, -1336.81812, 13.53531)
setElementInterior ( source,0 , 738.70020, -1336.81812, 13.53531 )
end
end


addEventHandler( "onMarkerHit", marker2, warpto2)
[/lua]
Od razu zaznaczam ,?e wychodzi si? normalnie

[size=9][ [i][b]Dodano[/b]: 2017-04-21, 12:28[/i] ][/size]
ta funckja...
4. [INNE] Pobieranie Int do zmiennej
Oj wredne te pawno jest oj wredne :D

M?j problem jest taki:
Kod:


error 033: array must be indexed (variable "str")

a skrypt
Kod:


new str[24];
new name[24];
GetPlayerName(playerid, name, sizeof name);
str = DOF2_GetInt(ADMINLIST, name); < - to jest linijka z b??dem :D

Jak prawid?owo pobra? int do zmiennej ?