SA-MP Forums Archive
RemoveObjectForPlayer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: RemoveObjectForPlayer (/showthread.php?tid=355098)



RemoveObjectForPlayer - LeOsk - 28.06.2012

I was about to write a little script, I want to delete an object (a small shop) my map editor told me to do it with RemoveObjectForPlayer but I allways got a warning: tag mismatch...

I don't know why,maybe this command does not exist any longer...


Re: RemoveObjectForPlayer - JaTochNietDan - 28.06.2012

A tag mismatch warning means that you're not using the correct values in the arguments of the function. I don't know of a RemoveObjectForPlayer (Unless it's a custom function from your map editor or something), but there is a function called RemoveBuildingForPlayer in the SA-MP API:

https://sampwiki.blast.hk/wiki/RemoveBuildingForPlayer

Check out the documentation on it and make sure that the arguments you are providing it are valid, if you're not sure, post the code here and we can help out.


AW: RemoveObjectForPlayer - LeOsk - 28.06.2012

Sry not tag mismatch I mean undefined symbol (or so)


Re: RemoveObjectForPlayer - Vince - 28.06.2012

There is no such thing as RemoveObjectForPlayer. There is RemoveBuildingForPlayer to delete a static object and DestroyPlayerObject to delete a server created player object.

And I'm late again because of this retarded flood control. Please wait 41 seconds ..


AW: RemoveObjectForPlayer - LeOsk - 28.06.2012

Oh ok

My map editor is a little weird I should look for a new one... Do you know any good ones?


Re: RemoveObjectForPlayer - phillip875 - 29.06.2012

https://sampforum.blast.hk/showthread.php?tid=282801

That one is amazing, if you learn to use it properly.


AW: RemoveObjectForPlayer - LeOsk - 29.06.2012

Thanks +1rep

How can I give you a rep? (I am new here and its a little complicated with my mobile)


Re: RemoveObjectForPlayer - phillip875 - 29.06.2012

The black star is how you can give a rep to other members.


AW: RemoveObjectForPlayer - LeOsk - 29.06.2012

Ok so I think I did it


Re: RemoveObjectForPlayer - phillip875 - 29.06.2012

It doesn't matter about giving a rep

Though, you have to put a comment in for it to work. (I think).