| No code example to demonstrate what you say = most likely an error in your code or a corrupted file. 
 -check if the texture is not corrupted (open it with the windows image viewer or with an image editor)
 -check if the filename is correct (in the name of the file and in your bb code)
 -check if a reference exists after you have tried to load the texture
 
 
Texture = loadtexture("texture.jpg",1)
debuglog(Texture)
 if you still have an error, post a simplified code example here with your texture, so that we can test it and see what is going on
 
 
 |