Object Bug
#1

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:



Reply
#2

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.
Reply
#3

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

I didn't really care about any losing indentation as this is just a developing I always take care of losing indentations after development.
Reply
#5

But why is your fRadius such a long value?
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)