bank.lua:248: 'end' expected (to close 'for' at line 99) near '<eof>'
Lua
addEvent("onBankkontoAnmelden", true)
addEventHandler("onBankkontoAnmelden", getRootElement(),
function(text1)
local name = getPlayerName(source)
local query = "SELECT * FROM bank WHERE SPIELER = \'"..name.."\' AND PIN = \'"..text1.."\';"
local result = mysql_query( handler, query )
local row = mysql_fetch_assoc( result )
if ( result and mysql_num_rows( result ) > 0) then
triggerClientEvent(source, "onBankkontoErfolgreichAnmeld", source)
local time = getRealTime()
local day = time.monthday
local month = time.month+1
local year = time.year+1900
local hour = time.hour
local minute = time.minute
triggerClientEvent(source, "writeToPaylog", source, day.."."..month.."."..year.." um "..hour..":"..minute.."|".."Du hast dich Angemeldet.")
mysql_free_result(result)
else
outputChatBox("Fehler beim Anmelde: Falscher PIN!", source, 200, 0, 0, false)
end
end)
Alles anzeigen
Was heißt die Fehlermeldung?