Random spawn
#11
(08-04-2019, 07:04 AM)xoft Wrote: @Lain, your code will probably not work properly. GetUniqueID() returns an ID that is only guaranteed to be unique in the current Cuberite session, there's no guarantee that the player will receive the same ID when they log out and in again (most likely they will not get the same ID). Your DB should store the player's UUID (cPlayer:GetUUID()) instead.

Thank you for checking my code (its not that pretty)

new api & pretty new at lua so I got alot to learn Blush
Reply
Thanks given by:




Users browsing this thread: 3 Guest(s)