Object Bug - 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: Object Bug (
/showthread.php?tid=450283)
Object Bug -
Rufio - 12.07.2013
Here I am again with another problem :P
I removed objects normally by RemoveBuildingForPlayer(playerid,modelid,Float:X,F loat:Y,Float:Z,fRadius);
but there is a problem. Objects appear and disappear by the time you scroll your mouse.
screenshots:
Re: Object Bug -
Rufio - 12.07.2013
sorry :P
pawn Код:
RemoveBuildingForPlayer(playerid, 5464, 1902.42969, -1309.53906, 29.91406, 91.840255737305);
RemoveBuildingForPlayer(playerid, 5644, 1881.82031, -1315.92187, 30.83594, 24.462337493896);
RemoveBuildingForPlayer(playerid, 5463, 1881.79688, -1315.53906, 37.94531, 42.392730712891);
edit : It's on OnPlayerConnect.
Re: Object Bug -
arjanforgames - 12.07.2013
Why do you have:
pawn Код:
RemoveBuildingForPlayer(playerid, 5464, 1902.42969, -1309.53906, 29.91406, 91.840255737305);
RemoveBuildingForPlayer(playerid, 5644, 1881.82031, -1315.92187, 30.83594, 24.462337493896);
RemoveBuildingForPlayer(playerid, 5463, 1881.79688, -1315.53906, 37.94531, 42.392730712891);
And not:
pawn Код:
RemoveBuildingForPlayer(playerid, 5464, 1902.42969, -1309.53906, 29.91406, 91.840255737305);
RemoveBuildingForPlayer(playerid, 5644, 1881.82031, -1315.92187, 30.83594, 24.462337493896);
RemoveBuildingForPlayer(playerid, 5463, 1881.79688, -1315.53906, 37.94531, 42.392730712891);
This will at least prevent the script from losing indentation.
Re: Object Bug -
Rufio - 12.07.2013
I didn't really care about any losing indentation as this is just a developing I always take care of losing indentations after development.
Re: Object Bug -
arjanforgames - 12.07.2013
But why is your fRadius such a long value?
Re: Object Bug -
Rufio - 12.07.2013
Quote:
Originally Posted by ******
That's actually a bug with the "PAWN" tag on the forums when pasting indented code, the first line always looses its indentation.
Do you have any code triggered by mouse scrolling?
|
No I haven't got any code triggered by mouse scrolling. This problem just happened to me. I didn't have any problems like this before. :S
@arjanforgames,
It is the radius I got from MTA's .map file.
edit:
@******, well, you are right about that. I don't know why but I used to do it like that. I will try to change this attitude