Pickup and label bug?
#1

Before I restored my OS, everything was working fine.
I created a business, it spawned at your position perfectly and the right height(ground).
Now, I was testing it out since I had to manually restore the database, it doesn't spawn it on the ground, it spawns it head-height and also spawns it to the left of you and not on your position(if you stand still and create, it'll spawn on the left-hand side of your player).
Code hasn't been altered at all.

Also, I spoke to Jimmy0wns, who is also having the same issue after updating to 0.3.7.

Can anyone else confirm this?
Reply
#2

As said in the thread, I can confirm that whenever I create something regarding coordinates, it seems to put it somewhere else, but sometimes a bit off.
Reply
#3

Post an example code please, i didn't understood.
Reply
#4

Quote:
Originally Posted by ipsLeon
Посмотреть сообщение
Post an example code please, i didn't understood.
Basically whenever you create something based on coordinates (pickup, 3dtext, etc), insert it into a database and reload it again, it puts it at a different coordinate than before.
Reply
#5

Tested this; cannot confirm. Coordinates are fine. It must be a bug in your script(s).
Reply
#6

I think this is cause your code assumes GetPlayerPos but you were not onfoot, hence the offset. Otherwise i don't know
Reply
#7

Quote:
Originally Posted by Jimmy0wns
Посмотреть сообщение
Basically whenever you create something based on coordinates (pickup, 3dtext, etc), insert it into a database and reload it again, it puts it at a different coordinate than before.
Its not a bug, your database is probably only rounding the float.
Reply
#8

Quote:
Originally Posted by ipsLeon
Посмотреть сообщение
Its not a bug, your database is probably only rounding the float.
This sounds like the correct answer.
Reply
#9

Quote:
Originally Posted by ipsLeon
Посмотреть сообщение
Its not a bug, your database is probably only rounding the float.
I didn't think about that before, but it helped; thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)