Issue with /time command.
#2

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.
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)