31.07.2018, 06:13
I created a function, to buy an phone which gives you a random number.
And i created a check so that the player cannot have the same number as other players.
My problem now is as i realized: The Function doesn't check the Database.
so it means if someones offline, the other player who buys the phone, could get the same number as an offline player.
So my Question is: How can i check if the random value for the phone number is the same as in the database?
And i created a check so that the player cannot have the same number as other players.
My problem now is as i realized: The Function doesn't check the Database.
so it means if someones offline, the other player who buys the phone, could get the same number as an offline player.
So my Question is: How can i check if the random value for the phone number is the same as in the database?