SA-MP Forums Archive
PLz help me - 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: PLz help me (/showthread.php?tid=339951)



PLz help me - Dragonlord - 05.05.2012

Im planing on making a garage for some stuff, and when i remove 2 object i get

Код:
RemoveBuildingForPlayer(playerid, 11012, -2166.8672, -236.5078, 40.8672, 0.25);
RemoveBuildingForPlayer(playerid, 11270, -2166.8672, -236.5078, 40.8672, 0.25);
but how do i do to get it removed in server, cus i get 2 errors when i add them. plz help

Код:
error 049: invalid line continuation
error 017: undefined symbol "RemoveBuildingForPlayer"



Re: PLz help me - ToiletDuck - 05.05.2012

Kindly please check this https://sampforum.blast.hk/showthread.php?tid=301264
this is all about of removing buildings for player


Re: PLz help me - Dragonlord - 05.05.2012

ok, thx


Re: PLz help me - ToiletDuck - 05.05.2012

Quote:
Originally Posted by Dragonlord
Посмотреть сообщение
ok, thx
No Problem :3


Re: PLz help me - Dragonlord - 05.05.2012

it didnt work, i still got
error 017: undefined symbol "RemoveBuildingForPlayer"


Re: PLz help me - newbienoob - 05.05.2012

Get the latest 0.3d here
http://team.sa-mp.com/files/samp03dsvr_R2_win32.zip


Re: PLz help me - Dragonlord - 05.05.2012

i got the lastest


Re: PLz help me - ToiletDuck - 05.05.2012

Well you didn't read and undestand..
https://sampforum.blast.hk/showthread.php?tid=301264
its already explained just read and read, until you understand it.


Re: PLz help me - Dragonlord - 05.05.2012

i did, but i still got
(936) : error 017: undefined symbol "RemoveBuilding"
(937) : error 017: undefined symbol "RemoveBuilding"


Re: PLz help me - ToiletDuck - 05.05.2012

funky1234:
-Download this include and give it a sensible name
-Include it (#include <your_saved_name>)
-Get the 'RemoveBuildingForPlayer' lines from JernejL's Map Editor
-Remove the "RemoveBUildingForPlayer(playerid, " section and replace it with "RemoveBuilding(" for every line. (Or -use the program I created to convert them for you)
-Copy these into either OnGameModeInit or OnFilterScriptInit (depending on what script you're making)
-Compile
-Fix errors, if any occur
-Run on the server
-You will now notice that the buildings you wanted to remove have now been removed.