How to remove buildings?
#1

How do I remove certain buildings that I want?I used JernejL's Map Editor but I don't know where to put the codes
example :
pawn Код:
RemoveBuildingForPlayer(playerid, 1408, 1093.3047, -293.7813, 73.5703, 0.25);
Reply
#2

Place the code wherever it should be. The most common place to put it is usually in OnPlayerConnect or OnPlayerSpawn.
Reply
#3

Quote:
Originally Posted by Calgon
Посмотреть сообщение
Place the code wherever it should be. The most common place to put it is usually in OnPlayerConnect or OnPlayerSpawn.
I've tried that but it gives me
pawn Код:
error 017: undefined symbol "RemoveBuildingForPlayer"
Reply
#4

You haven't got the latest 0.3d includes, then.

//Shameless advertisement:
If you wish to keep all your mapping code together, then you can take a look at my include (RemoveBuilding). While this won't fix your issue as you still need the latest 0.3d includes, it helps make code more 'segmented' so you can see what bits of code are related to maps, etc.
Reply
#5

Quote:
Originally Posted by funky1234
Посмотреть сообщение
You haven't got the latest 0.3d includes, then.

//Shameless advertisement:
If you wish to keep all your mapping code together, then you can take a look at my include (RemoveBuilding). While this won't fix your issue as you still need the latest 0.3d includes, it helps make code more 'segmented' so you can see what bits of code are related to maps, etc.
Thanks it work now , I will surely look at your include repped.
Reply
#6

Quote:
Originally Posted by [Headless]
Посмотреть сообщение
Thanks it work now , I will surely look at your include repped.
Glad I could help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)