Error in quest lua, query bug?

07/25/2014 21:46 spiderpork96#1
Guten abend an alle!
Ich habe ein Problem mit einem quest
wo ist der fehler in meiner script?

[Only registered and activated users can see links. Click Here To Register...]

mein problem:
wenn die mission kommt es auf den punkt, wo er benötigt, von zeile 15 (in quest script 15-20)
alle Server schließt...

Vielen dank im voraus an alle!
07/26/2014 10:30 grαyfox#2
it would be nice if you write in english, the google translator is not rly good made ^^

can you please post your lua error if there is anyone in your syserr ?
07/26/2014 14:15 spiderpork96#3
Quote:
Originally Posted by .ʛᶉɑҹғох™ View Post
it would be nice if you write in english, the google translator is not rly good made ^^

can you please post your lua error if there is anyone in your syserr ?
Inside the syserr there is no error pertinent...
when the mission gets to the point of run EVENT3 (the one where there are two local) all cores are turned off
07/26/2014 14:38 PDDS™#4
You haven't defined the query_result as Array. This may be the problem why the cores are crashing.
07/26/2014 14:46 spiderpork96#5
Quote:
Originally Posted by PDDS™ View Post
You haven't defined the query_result as Array. This may be the problem why the cores are crashing.
then the solution is this?

when event3.server_timer begin
local ret_value, ret_array = execute_query("player", "SELECT id_ti FROM good ORDER BY RAND() LIMIT 1")
local id_vinc = tonumber(ret_array[1][1])
notice_all("Number: "..id_vinc..".")
server_timer("event2",3)
end