Issue with /time command.
#3

Quote:
Originally Posted by Freaksken
Посмотреть сообщение
Alright, few things ...

1.
You're using global textdraws everywhere, that's not good, since you'll hit the max of 2048 quite quick. In your time command you show one of two things:
  • current time + prison sentence: since the prison sentence is different for each player, it's a prime example of when you need a player textdraw
  • current time: since the current time is the same for every player, it's a prime example of when you need a global textdraw
So in total you only need 1 player texdraw and 1 global textdraw.

2.
You don't initialize your textdraws, this can lead to very strange behaviour in the future.

3.
You're also doing this:
Код:
new str[500];
new MonthStr[15];
Just learn to calculate how large the string can get, but this is just a minor issue.

Other than that, I just tested you're code, and the time does show for me.

I am getting this black box, how come it would work for you? I'm confused. What's wrong with making a textdraw like this? I don't want to make 200 different textdraws, just change the text based on what I want to tell the player at that time.
Reply


Messages In This Thread
Issue with /time command. - by Stefhan - 10.04.2019, 21:32
Re: Issue with /time command. - by Freaksken - 10.04.2019, 21:59
Re: Issue with /time command. - by Stefhan - 10.04.2019, 22:02
Re: Issue with /time command. - by Freaksken - 10.04.2019, 22:06
Re: Issue with /time command. - by Stefhan - 10.04.2019, 22:08
Re: Issue with /time command. - by Freaksken - 10.04.2019, 22:16
Re: Issue with /time command. - by Stefhan - 11.04.2019, 21:29

Forum Jump:


Users browsing this thread: 1 Guest(s)