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

Wysłany: 2014-09-21, 16:21


Dixers

No-Life






Wiek: 26
Na forum: 4312 dni
Posty: 549
Nick w MP: Dixers

Piwa: 412

Respekt: 56,8

Co robi? ?le? Db3 to ?e nie ma argumentu.


function onEnterRefillArea(player,sDimension)
    triggerClientEvent("onGasRefill",getRootElement(),true)
    takePlayerMoney (thePlayer200 )
end
addEventHandler("onMarkerHit",getRootElement(marker),onEnterRefillArea


PS to jest kawa?ek kodu tylko (to co jest potrzebne teraz).

[ Dodano: 2014-09-21, 16:30 ]
A oczywi?cie chodzi o takePlayerMoney

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-21, 16:37


luki123luki123

Place Game






Wiek: 28
Na forum: 5275 dni
Posty: 1948
Nick w MP: LuKiO

Piwa: 6101

Respekt: 611
Respekt: 611Respekt: 611

Dixers, triggerClientEvent jest te? zle.
bool triggerClientEvent ( [table/element sendTo=getRootElement()], string nameelement sourceElement, [arguments...] )


a TakePlayerMoney nie dzia?a poniewa? jest ?le argumenty:
onEnterRefillArea(player,sDimension)
a
takePlayerMoney (thePlayer, 200 )

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-21, 16:41


Dixers

No-Life






Wiek: 26
Na forum: 4312 dni
Posty: 549
Nick w MP: Dixers

Piwa: 412

Respekt: 56,8

luki123luki123, sorki ale tym razem nic nie pomog?e?. Wypisa?es mi moje b??dy i tyle. A to co poda?e? z wiki nie rozumiem.

[ Dodano: 2014-09-21, 16:42 ]
luki123luki123, a po za czemu tigger ?le skoro dzia?a i ?aduje paliwo?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-21, 16:48


luki123luki123

Place Game






Wiek: 28
Na forum: 5275 dni
Posty: 1948
Nick w MP: LuKiO

Piwa: 6101

Respekt: 611
Respekt: 611Respekt: 611

Dixers, poniewa? trigger innaczej sie programuje.
przyk?ad:
 triggerClientEvent playerSource"onGreeting"playerSource"Hello World!" )


[ Dodano: 2014-09-21, 16:48 ]
Dixers, ty tigger przypisujesz dla ka?dego dla serwerach chyba teraz.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-21, 16:50


Dixers

No-Life






Wiek: 26
Na forum: 4312 dni
Posty: 549
Nick w MP: Dixers

Piwa: 412

Respekt: 56,8

luki123luki123, a tiggerClientEvent nie s?u?y przypadkiem do tego, ?e s-side tak jakby patrzy? na eventy kt?re znajduj? si? w c-side?

[ Dodano: 2014-09-21, 16:51 ]
luki123luki123, zrobisz mi to tkePlayerMoney tutaj ? Prosz?, stawiam 2 zimne piwka :piwo: :piwo:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-21, 16:51


luki123luki123

Place Game






Wiek: 28
Na forum: 5275 dni
Posty: 1948
Nick w MP: LuKiO

Piwa: 6101

Respekt: 611
Respekt: 611Respekt: 611

Dixers, przez tiggerClientEvent wysy?asz zmiene na strone server. Ja to tak rozumiem.

[ Dodano: 2014-09-21, 16:54 ]
function onEnterRefillAreahitElement)
if getElementType hitElement ) ==  "player" then
    triggerClientEvent("onGasRefill",getRootElement(),true)
    takePlayerMoney (hitElement200 )
end    
end
addEventHandler("onMarkerHit",getRootElement(marker),onEnterRefillArea


[ Dodano: 2014-09-21, 16:55 ]
sory m?j b?ad:
function onEnterRefillAreahitElement)
if getElementType hitElement ) ==  "vehicle" then
    local auto getVehicleOccupant hitElement0)
    if auto then
        triggerClientEvent("onGasRefill",getRootElement(),true)
        takePlayerMoney (auto200 )
    end    
end    
end
addEventHandler("onMarkerHit",getRootElement(marker),onEnterRefillArea


Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-21, 17:19


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4394 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

A? oczy bol? :

function onEnterRefillArea(player)
    triggerClientEvent("onGasRefill",getRootElement(),true)
    takePlayerMoney (player200 )
end
addEventHandler("onMarkerHit",marker,onEnterRefillArea


Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-21, 17:20


Dixers

No-Life






Wiek: 26
Na forum: 4312 dni
Posty: 549
Nick w MP: Dixers

Piwa: 412

Respekt: 56,8

A tutaj jak zmieni? tigger?

function onExitRefillArea(playerplayer,sDimension)
        triggerClientEvent("onGasRefill",getRootElement(),false)
end
addEventHandler("onMarkerLeave",getRootElement(marker),onExitRefillArea)


Postaw piwo autorowi tego posta
 

 
Tagi: takeplayermoney
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » takePlayerMoney 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