Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Run time error 53 "file not found" ?


teh jimpie
 Share

Recommended Posts

hello

when 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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...