RemoveObjectForPlayer
#1

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...
Reply
#2

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.
Reply
#3

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

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 ..
Reply
#5

Oh ok

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

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

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

Thanks +1rep

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

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

Ok so I think I did it
Reply
#10

It doesn't matter about giving a rep

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


Forum Jump:


Users browsing this thread: 1 Guest(s)