sounds like you or the FTP have routing issues.
for the moment it will probably best to loop until a successfull connect. you could also build a manual for loop with non-blocking code and a global counter.
One more question, i made a script which connects to the ftp, but sometimes ftp isnt available, and then script jst tries to establish connection even for 2 minutes or longer and bot isnt usable for anything else during that time, could i make so it tries for 30s if he can connect if not he moves on, so he doesnt wait too long on the same position ?
This sounds like checking if warez ftp's are up to me. Go elsewhere for help on illegal activities.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
]Godlike[ wrote:One more question, i made a script which connects to the ftp, but sometimes ftp isnt available, and then script jst tries to establish connection even for 2 minutes or longer and bot isnt usable for anything else during that time, could i make so it tries for 30s if he can connect if not he moves on, so he doesnt wait too long on the same position ?
learn about non blocking socket connection. there are various examples in the forums.