Witam, zrobi?em sobie dxGUI na licznik, teraz tylko zrobi? ?eby wskaz?wka si? rusza?a, i w?a?nie nie wiem. Jak pobra? pr?dko?? auta i zrobi? tak ?eby wtedy rusza?a si? wskaz?wka.
Tutaj m?j kod:
Ostatnio zmieniony przez Szydlo 2017-11-10, 19:21, w całości zmieniany 1 raz
na wiki nawet chyba s? gotowe wyliczenia. Jako rotacj? podstawiasz zmienn? z wylicze?. Ponadto tw?j kod jest nie optymalny i troch? bez sensowny, albo dawaj event do funkcji dxSPEED gdy gracz wsi?dzie
Dzi?ki, i mam takie pytanie. Chyba pora aby nauczy? si? elementdaty poniewa? mam panel logowania i po zalogowaniu ustawiam elementdate uid, i wtedy mog? w innym skrypcie da? t? elementdate i wtedy WHRE UID=?, taelementdata. Po na razie nie wiem jak ten problem rozwi?za?.
addEvent("CLICK_REGISTER", true)
function sendRegister(player, rusername, rpassword)
local serial = getPlayerSerial(player)
check3 = dbQuery(db_connect,"SELECT Login FROM `rg_users` WHERE Login=?", rusername)
result3 = dbPoll(check3,-1)
if #result3>0 then
triggerClientEvent("ERROR_2", root)
else
local send=dbQuery(db_connect, "INSERT INTO `rg_users` (Login, Password,Serial) VALUES (?,?,?) ", rusername, rpassword, serial)
triggerClientEvent("REGISTERED", root)
result4 = dbPoll(send,-1)
end
end
addEventHandler("CLICK_REGISTER", root, sendRegister)
[ Dodano: 2017-11-10, 19:28 ]
No i co to jest ten escapeString.
Podaj t? cz??? gdzie triggerujesz event "CLICK_REGISTER", escapeString, sk?d to wytrzasn??e??
escapeString nie ma og?lnie takiego czego?, aczkolwiek nazywa si? tak "metod?" zamiany/pozbywania si? nie kt?rych znak?w, wszystko to dotyczy wyra?e? regularnych czyli regex, polecam poczyta?.
addEventHandler( "onClientGUIClick", root,
function()
rusername = guiGetText ( REDIT_LOGIN )
rpassword = guiGetText ( REDIT_PASS )
reppassword = guiGetText ( REPEDIT_PASS )
if source == REGIN or source == REG_LABEL then
if rusername == "" or rusername == "Podaj login" then
exports["rg_noti"]:showGUI("Uzupe?nij pola!")
elseif rpassword == "" or rpassword == "Podaj has?o" then
exports["rg_noti"]:showGUI("Uzupe?nij pola!")
elseif reppassword == "" or reppassword == "Powt?rz has?o" then
exports["rg_noti"]:showGUI("Uzupe?nij pola!")
else
if reppassword == rpassword then
if string.len(rusername)>16 or string.len(rusername)<3 then
exports["rg_noti"]:showGUI("Login jest za kr?tki,d?ugie (od 3 do 16)!")
elseif string.len(rpassword)>16 or string.len(rpassword)<3 then
exports["rg_noti"]:showGUI("Has?o jest za kr?tkie,d?ugie (od 3 do 16)!")
else
rpassword = guiGetText ( REDIT_PASS )
triggerServerEvent("CLICK_REGISTER", root, rusername, rpassword)
end
else
exports["rg_noti"]:showGUI("Has?a nie s? takie same!")
end
end
end
if source == GOLOG_LABEL then
triggerEvent("GOLOGIN", root)
guiSetVisible(RBG,false)
end
end)
Podpis
Aktualny najlepszy kontakt do mnie: Szydlo#8134 (Discord)
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