SA-MP Forums

Go Back   SA-MP Forums > SA-MP > Bug Reports

Reply
 
Thread Tools Display Modes
Old 14/04/2015, 10:11 AM   #1
iiNzTicTx
Big Clucker
 
Join Date: Jan 2012
Posts: 77
Reputation: 11
Default RemoveBuildingForPlayer() callback

Would be great if there was a patch on how RemoveBuildingForPlayer() callback calls every time there is a GMX, and add a check weather the object has already been removed. Basically every time the OnGameModeInit() callback is called, it removes buildings again, even if they had already been removed until the point it has hit > 999.
iiNzTicTx is offline   Reply With Quote
Old 14/04/2015, 03:25 PM   #2
Pottus
High-roller
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 4,892
Reputation: 1321
Default Re: RemoveBuildingForPlayer() callback

Waste of effort I think GMX is very shoddy and not even worth using do you think this is the only bug? It's riddled with issues like holes in an ant mound!
Pottus is offline   Reply With Quote
Old 26/04/2015, 12:38 AM   #3
uint32
Little Clucker
 
uint32's Avatar
 
Join Date: Mar 2015
Location: $(pwd)
Posts: 4
Reputation: 8
Default Re: RemoveBuildingForPlayer() callback

Quote:
Originally Posted by Pottus View Post
Waste of effort I think GMX is very shoddy and not even worth using do you think this is the only bug? It's riddled with issues like holes in an ant mound!
The same bug can happen if you lose connection to the server and then reconnect without closing the game, it really needs to be fixed.
uint32 is offline   Reply With Quote
Old 27/04/2015, 12:00 AM   #4
Pottus
High-roller
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 4,892
Reputation: 1321
Default Re: RemoveBuildingForPlayer() callback

In that case the client should reconnect anyways there are other bugs as well that may occur.
Pottus is offline   Reply With Quote
Old 27/04/2015, 12:19 AM   #5
Abagail
High-roller
 
Join Date: Dec 2013
Location: GetPlayerPos(playerid, pos); Scripter/Mapper.
Posts: 3,139
Reputation: 445
Default Re: RemoveBuildingForPlayer() callback

Just a side note here, RemoveBuildingForPlayer is a function; not a callback(regarding the topic's title).
Abagail is offline   Reply With Quote
Old 29/04/2015, 05:46 AM   #6
Matite
Beta Tester
 
Matite's Avatar
 
Join Date: Dec 2006
Location: Australia
Posts: 145
Reputation: 119
Default Re: RemoveBuildingForPlayer() callback

I know this is not really related to the problem you posted but it is worth mentioning that in SA:MP 0.3.7 RC5+ you can use -1 for the modelid param to remove all of the map objects within the specified radius.

This will also help to overcome the limitation of 1000 or so RemoveBuildingForPlayer calls per client (eg you could remove all objects in the radius you specify instead of one by one).

This change was not listed in the RC release notes but I have updated the wiki:
http://wiki.sa-mp.com/wiki/RemoveBuildingForPlayer

As you can see on the updated wiki article, you could remove all map objects from the GTASA map with just one command.
__________________

GamerX 0.3.7 Server 188.165.219.63:8800
www.gamerxserver.com
Matite is offline   Reply With Quote
Old 02/05/2015, 02:36 AM   #7
iiNzTicTx
Big Clucker
 
Join Date: Jan 2012
Posts: 77
Reputation: 11
Default Re: RemoveBuildingForPlayer() callback

Quote:
Originally Posted by Matite View Post
I know this is not really related to the problem you posted but it is worth mentioning that in SA:MP 0.3.7 RC5+ you can use -1 for the modelid param to remove all of the map objects within the specified radius.

This will also help to overcome the limitation of 1000 or so RemoveBuildingForPlayer calls per client (eg you could remove all objects in the radius you specify instead of one by one).

This change was not listed in the RC release notes but I have updated the wiki:
http://wiki.sa-mp.com/wiki/RemoveBuildingForPlayer

As you can see on the updated wiki article, you could remove all map objects from the GTASA map with just one command.
I'm unable to test this at this present moment, however does that readd the removed buildings, or deletes all native objects? Seems interesting.
iiNzTicTx is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] RemoveBuildingForPlayer Pandex PortuguÍs/Portuguese 2 20/08/2013 07:48 PM
[Tutorial] Hooking CallBack(s) - How to Hook any callback Swimor Tutorials 6 19/10/2012 09:32 PM
Callback limits for RemoveBuildingForPlayer Patrik356b Scripting Help 2 18/06/2012 04:24 PM


All times are GMT. The time now is 03:28 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.