can't remove buildings
#1

I tried to remove the Big Ear because I want to add something else instead. I tested that new map editor with 0.3d support, and it generated the following code:
Код:
RemoveBuildingForPlayer(playerid, 16614, -346.6719, 1595.0781, 79.6641, 0.25);
RemoveBuildingForPlayer(playerid, 16136, -350.0625, 1594.3438, 75.3125, 0.25);
RemoveBuildingForPlayer(playerid, 16613, -346.6719, 1595.0781, 79.6641, 0.25);
I added the "a_samp" include at the beginning, but when I tried to compile, it gave me this:
Код:
C:\Users\HeLiOn\Desktop\buildingremove.pwn(2) : error 021: symbol already defined: "RemoveBuildingForPlayer"
What should I do?
Reply
#2

Well, where did you added this code?
Reply
#3

Download 0.3d server, add includes in includes map, and then try to compile
Reply
#4

Sir, update your includes to the 0.3d once, then recompile. Also please use the 0.3d forum.
Reply
#5

maybe you have already defined 'RemoveBuildingForPlayer' somewhere in your gamemode.
Remove it.
Reply
#6

change the 0.25 to 200.0 it worked for me
Reply
#7

Quote:
Originally Posted by FirziKs
Посмотреть сообщение
Download 0.3d server, add includes in includes map, and then try to compile
Quote:
Originally Posted by expertprogrammer
Посмотреть сообщение
Sir, update your includes to the 0.3d once, then recompile. Also please use the 0.3d forum.
It will make no difference. The error is saying that the function is already defined. Possibly he placed that code outside a callback/function.
Reply
#8

Solved it. I had to put it under OnPlayerConnect
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)