14-07-2015, 12:30 AM
function libro_init(e)
LoadImages("cartella",0)
end
function libro_main(e)
if GetPlayerDistance(e) < 50 then
SetImagePosition(50,50)
ShowImage(0) //pagina 1
PromptTextSize(5)
Prompt ("Premi E per sfogliarlo" )
if g_KeyPressE == 1 then //pagina 2
ShowImage(1)
if g_KeyPressE == 1 then //pagina 3
ShowImage(2)
if g_KeyPressE == 1 then //pagina 4
ShowImage(3)
if g_KeyPressE == 1 then //pagina 5
ShowImage(4)
else HideImage(i)
end
end
Non lo so.... mi dice che si aspetta un _"end" da qualche parte, ma non sono sicuro che vada bene la struttura... voi che dite?
LoadImages("cartella",0)
end
function libro_main(e)
if GetPlayerDistance(e) < 50 then
SetImagePosition(50,50)
ShowImage(0) //pagina 1
PromptTextSize(5)
Prompt ("Premi E per sfogliarlo" )
if g_KeyPressE == 1 then //pagina 2
ShowImage(1)
if g_KeyPressE == 1 then //pagina 3
ShowImage(2)
if g_KeyPressE == 1 then //pagina 4
ShowImage(3)
if g_KeyPressE == 1 then //pagina 5
ShowImage(4)
else HideImage(i)
end
end
Non lo so.... mi dice che si aspetta un _"end" da qualche parte, ma non sono sicuro che vada bene la struttura... voi che dite?