[Tutorial] Admin /announce with gametext - Easy
#8

A couple of things I noticed:
  • You don't check to verify the value is actually positive only above 8.
    pawn Code:
    if(ty >= 0 && ty <= 7)
    {
          // code here
    }
    else // rejection code
    or more like how you did it:
    pawn Code:
    if(ty < 0 || ty > 6) return // message
    else if(ty == 2) return // message
  • You don't check to make sure there is an equal balance of ~ characters(I gave you code and an example for this in your other thread).
Reply


Messages In This Thread
Admin /announce with gametext - Easy - by Karan007 - 14.11.2015, 13:28
Re: Admin /announce with gametext - Easy - by Hellceaser - 14.11.2015, 13:38
Re: Admin /announce with gametext - Easy - by SecretBoss - 14.11.2015, 13:49
Re: Admin /announce with gametext - Easy - by Karan007 - 14.11.2015, 15:29
Re: Admin /announce with gametext - Easy - by HydraHumza - 14.11.2015, 16:04
Re: Admin /announce with gametext - Easy - by thefirestate - 14.11.2015, 16:20
Re: Admin /announce with gametext - Easy - by Karan007 - 15.11.2015, 06:14
Re: Admin /announce with gametext - Easy - by Abagail - 15.11.2015, 17:28
Re: Admin /announce with gametext - Easy - by iKarim - 16.11.2015, 04:48
Re: Admin /announce with gametext - Easy - by Karan007 - 16.11.2015, 09:08

Forum Jump:


Users browsing this thread: 1 Guest(s)