teh jimpie Posted June 7, 2010 Author Share Posted June 7, 2010 hellowhen I use this packet in the client, it will say it can't find the picture.it says:Run-time error '53':File not found: \C:\Users\???\Desktop\Pokemon\GUI\Custom\Battle3\.bmp'so far as I can see its looking for ".bmp", but it did forget the " & Pokemon1 & " I guess I'm doing something wrong, but what?```Public Sub Packet_SetPokemonPicture(Pokemon1, Pokemon2, Pokemon3, Pokemon4, Pokemon5, Pokemon6)'Call Packet_PokemonPicture(Parse(1), Parse(2), Parse(3), Parse(4), Parse(5), Parse(6)) frmStable.picPokemon1.Picture = LoadPicture(App.Path & "\GUI\CUSTOM\Battle3\" & Pokemon1 & ".bmp")End Sub``` Link to comment Share on other sites More sharing options...
Kimimaru Posted June 8, 2010 Share Posted June 8, 2010 From looking at your code, I don't know if the **Pokemon1** variable is supposed to be a string or some sort of number. You should specify what type of variable it should be. Also, let's just say, for example, that **Pokemon1** is a number and that it equals **3**. The code will be looking for a file named **3.bmp** in the **Battle3** folder, which is in the **CUSTOM** folder, which is in the **GUI** folder. So, if you don't have a .bmp file named whatever **Pokemon1** is in the correct folder, then this error will come up because you don't have the file. Link to comment Share on other sites More sharing options...
balliztik1 Posted June 8, 2010 Share Posted June 8, 2010 Looks like your Pokemon1 value is a null string. Wherever you're setting it is obviously wrong, then. Link to comment Share on other sites More sharing options...
teh jimpie Posted June 8, 2010 Author Share Posted June 8, 2010 hmm thanks, but I already have that :/I'll re-make te whole code and see then what will happen Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now