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: osobisty
1. Dowód Osobisty
Witam kto? powie co tutaj jest ?le, poniewa? ja ju? si? wypali?em xD
function pok(theClient, commandName, target)
    
local gracz = getPlayerAccount(theClient)
    
local wyrtak = getAccountData(gracz, "dowod:wyrobiono")
    
local gracz2 = getPlayerName(target)
    
local gracz3 = getPlayerFromName(gracz2)
    if 
wyrtak == true then
        outputChatBox
("Ukaza?e? dow?d osobisty dla gracza "..target, theClient)
        
outputChatBox("Gracz "..theClient.." ukaza? ci dow?d osobisty", gracz3)
    elseif 
wyrtak == false then
        outputChatBox
("Nie posiadasz dowodu!", theClient)
        
outputChatBox("Gracz "..theClient.." nie posiada dowodu osobistego!", gracz3)
    
end
end
addCommandHandler
("pokazdow", pok)
2. Dowod Osobisty
Witam mam tu problem poniewa? chce aby Jak Wpisze tu Imie i Nazwiko to Imie sie doda?o do MySQL Tabela Rodzina I tam zeby sie doda?o: UID/Nazwa.....
A jak klikam to Pokazuje na czacie ,,Wyrobiono Dowod Osobity" Ale nie dodaje
Nazwisko chce aby by?o w Rodzina2
Kod Client:
[lua]


local marker=createMarker(361.83,173.44,1007.48, "cylinder", 1, 255, 255, 255, 155)
setElementInterior(marker, 3)

local t=createElement("text")
setElementPosition(t,361.83,173.44,1008.38)
setElementInterior(t,3)
setElementData(t,"name","Dowod Osobisty")




local wm={}
wm.window=guiCreateWindow(145, 72, 374, 334, "Dowod Osobisty", false)
guiWindowSetSizable(wm.window, false)
guiWindowSetMovable(wm.window, false)
guiSetVisible(wm.window, false)

wm.edit2=guiCreateEdit(20, 31, 335, 29, "Imie", false, wm.window)
wm.edit3=guiCreateEdit(19, 69, 336, 27, "Nazwisko", false, wm.window)
wm.submit=guiCreateButton(9, 288, 105, 36, "Wyrobn-250PLN", false, wm.window)
wm.close=guiCreateButton(278, 288, 86, 36, "Wyjdz", false, wm.window)

addEventHandler("onClientGUIClick", root, function(btn,state)
if source == wm.submit then
local new_board=guiGetText(wm.edit2)
local new_board2=guiGetText(wm.edit3)
local cost=250
if string.len(new_board) < 1 then
outputChatBox("* Podaj wi?cej znak?w.", 255, 0, 0)
return
end
if string.len(new_board) > ...