HELP removeobject
#1

I Downloaded Funky his include Now how I delete an Object wich wich Lines? [[ps i already know how the editor works ]]
Reply
#2

Uh... What?
Reply
#3

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?
Reply
#4

pawn Код:
public OnGameModeInit()
{
RemoveBuilding(615, 0.0, 0.0, 0.0, 200.0);
return 1;
}
Reply
#5

Thanks bro ill test it
Reply
#6

anyone?!I get errors Example when i do this the next line is Unreachable code
Reply
#7

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)