DestroyObject question
#1

So, does anyone know what happens when I try destroy an object that doesn't exist? Will the server crash or just continue like nothing happened?
Reply
#2

Nothin happens just destroy object
Reply
#3

you can check if its invalid before destroying it so you don't mess things up!
Reply
#4

Most functions have fail-safe functions for this, so it probably wouldn't hurt when you try to destroy a non-existing vehicle. If you would try this on SA-MP 0.1a (very first SA-MP version) though, your server would crash.
Reply
#5

Yeah I know I can use IsValidObject it's just I'm handling quite a lot of objects and it would take a lot of IF statements, but thanks guys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)