Kuks*
Wiek: 15 Na forum: 3030 dni Posty: 246
Nick w MP: Kuks*
Piwa : 2208
Siema, robi? skrypt na customowe GUI, wszystko dzia?a, exporty w innym skrypcie te?, tylko wywala b??dy w db3.
ERROR:Malwa-logowanie/c.lua:3: call: failed to call 'Malwa-GUI:createText' [string "?"]
Kod w skrypcie na GUI:
function createButton ( x , y , w , h )
dxDrawImage ( x * px , y * py , w * px , h * py , "przycisk.png" )
end
function createText ( txt , x , y , w , h , skala )
dxDrawText ( txt , x , y , w , h , tocolor ( 255 , 255 , 255 ), skala )
end
Logowanie:
addEventHandler ( "onClientRender" , root , function()
exports [ "Malwa-GUI" ]: createButton ( 754 , 509 , 325 , 77 )
exports [ "Malwa-GUI" ]: createText ( "ahaha" , 788 , 527 , 1037 , 567 )
end )