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

Wysłany: 2016-02-12, 18:57


EseJax







Wiek: 31
Na forum: 4085 dni
Posty: 67
Nick w MP: Toffy.

Piwa: 982

Respekt: 55,3

Ostrzeżeń: 100%
Cze??, mam pewien problem z account dat?, chce ustawi? ilo?? wpisan? w editboxa.
CLIENT

BANKGLOWNY guiCreateWindow((screenW 530) / 2, (screenH 367) / 2530367"BANKOMAT"false)
Wplac guiCreateButton(1125219647"Wp?a?"falseBANKGLOWNY)
TEXT guiCreateEdit(1119450748"Liczba.."falseBANKGLOWNY)
guiEditSetMaxLength(TEXT9)


addEventHandler("onClientMarkerHit"MarkerB, function(elmd)
    if not md or getElementType(el) ~= "player" then return end
    if el ~= Player then return end
    guiSetVisible BANKGLOWNYtrue )
end)

addEventHandler("onClientGUIClick"resourceRoot, function(elmd)
    if source == Zamknij then
    showCursor(false)
    guiSetVisible(BANKGLOWNY,false)
    end
    if source == Wplac then
    if el ~= Player then return end
    local ilosc guiGetText TEXT )
    local numer tonumber guiGetText TEXT ) )
    if numer and ilosc then
    triggerServerEvent("ustaw"Player"ilosc")
    outputChatBox("Wp?a?")
    else
    outputChatBox("Podany text nie jest liczb?!")
    end
    end
end)


SERVER

function asda(thePlayer)
    local konto getPlayerAccount(thePlayer)
    if konto then
    setAccountData(konto"pbankomath"ilosc)
end
end
addEvent"ustaw"true )
addEventHandler"ustaw"resourceRootasda )


Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-02-12, 19:03


_Wicek_

Majstersztyk






Wiek: 25
Na forum: 4260 dni
Posty: 747
Nick w MP: Wicek

Piwa: 1841

Respekt: 360,5
Respekt: 360,5Respekt: 360,5Respekt: 360,5Respekt: 360,5

Ostrzeżeń: 40%
triggerServerEvent(source,"ustaw"sourcenumer)


Graczem po triggerowaniu z c-side jest "source"



function asda(numer)
    local konto getPlayerAccount(source)
    if konto then
    setAccountData(konto"pbankomath"numer)
end
end
addEvent"ustaw"true )
addEventHandler"ustaw"resourceRootasda )


Podpis

Support-Team: 25.01.2016
Moderator: 10.07.2016




GG: 51274621
Skype : kuba_wicinski
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-02-12, 19:06


EseJax







Wiek: 31
Na forum: 4085 dni
Posty: 67
Nick w MP: Toffy.

Piwa: 982

Respekt: 55,3

Ostrzeżeń: 100%
Zrobi?em tak, po kliknieciu buttonu nic sie nie dzieje, nawet gdy wpisze jak?? literke nie pokazuje mi wiadomo?ci ?e jest nie prawid?owa.
Je?li mo?esz, przyjrzyj si? eventowi onClientGUIClick

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-02-12, 19:18


_Wicek_

Majstersztyk






Wiek: 25
Na forum: 4260 dni
Posty: 747
Nick w MP: Wicek

Piwa: 1841

Respekt: 360,5
Respekt: 360,5Respekt: 360,5Respekt: 360,5Respekt: 360,5

Ostrzeżeń: 40%
Usu? to :

if el ~= Player then return end


(Znajduje si? to w funkcji klikni?cia w buttona)

Podpis

Support-Team: 25.01.2016
Moderator: 10.07.2016




GG: 51274621
Skype : kuba_wicinski
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-02-13, 00:42


EseJax







Wiek: 31
Na forum: 4085 dni
Posty: 67
Nick w MP: Toffy.

Piwa: 982

Respekt: 55,3

Ostrzeżeń: 100%
Czekam na dalsze propozycje..

Postaw piwo autorowi tego posta
 

 
Tagi: accountdata
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