Cranium, on 09 January 2013 - 08:09 AM, said:
7777777777777777777777777777 788888888888888888888888888887 788ff888f888ff888f888f888ff887 78f88f8ff88f88f8ff88ff88f88f87 78f88f88f88f88f88f888f88f88f87 788ff88fff88ff88fff8fff88ff887 788888888888888888888888888887 788f888f888ff888ff888f888f8887 78ff88ff88f88f8f88f8ff88ff8887 788f888f88f88f8f88f88f888f8887 78fff8fff88ff888ff88fff8fff770 78888888888888888888888888700 7888888888888888888888888870 77777777777777777777777770and here is my function call:
local logo = loadImageFromServer("pastebinImage")
paintutils.drawImage(logo, 5, 3)
It works just fine in the lua prompt, but I get paintutils: 92: attempt to get length of nil when running it through Firewolf.That error would be caused by logo being nil, and nil is returned from loadImageFromServer when the loading failed - meaning that it couldn't find the image on the server.
I just tested it and it worked perfectly for me. Did you move the file into your server folder, and name it pastebinImage? loadImageFromServer takes the imagePath from the root of the server folder, so translated into a full file path taken from the root of the computer it would be /.Firewolf_Data/servers/[server name]/pastebinImage.











