[HILFE]Syserr LUA

01/25/2013 22:53 hamaba#1
Wie schon in der überschrift steht, habe ich ein problem mit meinem Prestige system. hier nochmal der fehler code.

PHP Code:
SYSERRJan 25 14:44:27 :: RunStateLUA_ERRORlocale/germany/quest/questing.lua:1548attempt to call global `int' (a nil value)
SYSERR: Jan 25 14:44:27 :: WriteRunningStateToSyserr: LUA_ERROR: quest prestige.start click 
und hier die zeile von questing.lua:1548:

PHP Code:
function prestige_is_reward_given()
    if 
int(mysql_query("SELECT p_given FROM player.player WHERE name='"..pc.get_name().."'")[1][1]) <= 0 then
        
return false
    
else
        return 
true
    end
end 
01/25/2013 23:34 KillerSura58#2
Hm.. Muss kurz noma was gucken !..
01/26/2013 12:34 hamaba#3
Quote:
Originally Posted by KillerSura58 View Post
Hm.. Muss kurz noma was gucken !..
Naja das hilft mir nicht weiter.
01/26/2013 13:04 √π.#4
Die Funktion int() gibts in lua nicht. Machs mit tonumber().
01/26/2013 13:17 hamaba#5
Quote:
Originally Posted by √π. View Post
Die Funktion int() gibts in lua nicht. Machs mit tonumber().
könntest du mir das mal bitte umgeschrieben zeigen ?

PHP Code:
Fehlercode #10: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(p_points = p_points-) WHERE (id = 329460)' at line 1 
Wenn die leute sich prestige machen wollen steht das