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: głownie
1. głownie sql lite
Witam, mam pare problem?w m?j pierwszy problem to jest z sql, mianowicie gdy si? rejestruje to zamiast, Loginu i has?a to si? pokazuje NULL I NULL, kod:

[lua]
addEvent("ClickRegister", true)
addEventHandler("ClickRegister", getRootElement(), function(rguiLogin, rguiPass, rguiPass2)

local rq=dbQuery(connect, "SELECT * FROM rich_users WHERE Login = ? ", rguiLogin)
local rr=dbPoll(rq,-1)

if #rr > 0 then
outputChatBox("Taki login ju? jest!")
else
if rguiPass == rguiPass2 then
if (string.len(rguiLogin)>16) then
return
outputChatBox("D?ugo?? tekstu jest za du?a")
elseif (string.len(rguiLogin)<3) then
return
outputChatBox("D?ugo?? tekstu jest za ma?a")
else
if (string.len(rguiPass)>16) then
return
outputChatBox("D?ugo?? hasla jest za du?a")
elseif (string.len(rguiPass)<3) then
return
outputChatBox("D?ugo?? hasla jest za ma?a")
else
local q=dbQuery(connect, "INSERT INTO `rich_users` (Login, Pass, Serial) VALUES (?,?, 654235)", guiLogin, guiPass)
outputChatBox("Zarejestrowano porawnie")
end
end
else
outputChatBox("Hasla nie sa takie same!")
end
end

[/lua]

Dobra drugi problem to chcia?bym zrobi? system prywatnych aut. I zrobi?em sobie tabelk? ( Uid(Wlasciela), id auta, i np infernus. ). I ter...