HELP removeobject - 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: HELP removeobject (
/showthread.php?tid=345435)
HELP removeobject -
miley1 - 25.05.2012
I Downloaded Funky his include Now how I delete an Object wich wich Lines? [[ps i already know how the editor works ]]
Re: HELP removeobject -
SnG.Scot_MisCuDI - 25.05.2012
Uh... What?
Re: HELP removeobject -
miley1 - 25.05.2012
How do i remove an Building With funky His Include Do i put it ongamemodeinit or?
Do i do it like this?
Quote:
public OnPlayerConnect(playerid)
{
// When the player connects model "615" which is veg_tree3 will be deleted within a range of 200.0
// from the point: 0.0, 0.0, 0.0, which is the center of San Andreas.
RemoveBuildingForPlayer(playerid, 615, 0.0, 0.0, 0.0, 200.0);
return 1;
}
|
I think it aint The up here , Because i get errors with them
Please explain how i do it?
Re: HELP removeobject -
Ajez - 25.05.2012
pawn Код:
public OnGameModeInit()
{
RemoveBuilding(615, 0.0, 0.0, 0.0, 200.0);
return 1;
}
Re: HELP removeobject -
miley1 - 25.05.2012
Thanks bro ill test it
Re: HELP removeobject -
miley1 - 25.05.2012
anyone?!I get errors Example when i do this the next line is Unreachable code
Re: HELP removeobject -
kepa333 - 26.05.2012
Quote:
Originally Posted by funky1234
Setup
You will need to download the include (and place it in pawno > includes). The download link is available toward the end of this post. Include it (with the name you called it).
pawn Code:
#include <removebuilding> //Example
The default "object removal limit" is 100. You can change this by defining it BEFORE you include the file. Example:
pawn Code:
#define MAX_REMOVED_OBJECTS 500
#include <removebuilding>
Remember, the higher this number - the bigger the array, therefore the higher the memory usage.
You can then proceed to using "RemoveBuilding" like you would use "RemoveBuildingForPlayer". You will need to change your RemoveBuildingForPlayer lines to RemoveBuilding for this include to be able to handle them correctly.
|
U did this?