[Tutorial] How to Make A Admin Duty Cmd ( /onduty )
#3

1) You assume there's an enum for storing player data and that it's named 'pInfo'. Assumptions suck.
2) They'll get an error for an undefined symbol named 'yellow'.
3) There's no explanations as to what skin you're setting the player to, what weapon you are giving them, what color you are setting them to, I just see meaningless numbers like 38 and 189.
4) You use 256 cells for a string when the maximum string length is only 144.
5) Try disconnecting on duty and then rejoining.
6) You can go on/off duty as many times as you like, gaining pretty much infinite ammo.

There are a lot of things wrong with this, I mentioned the easier ones to spot - since your emphasis was on "this is for beginner server owners who need a onduty cmd and instead of searching on ****** for hours here it is."
You should make sure your code is perfect before even thinking of posting a tutorial.

Cheers
Reply


Messages In This Thread
How to Make A Admin Duty Cmd ( /onduty ) - by [Cali]ChrOnic_T - 06.06.2014, 09:08
Re: How to Make A Admin Duty Cmd ( /onduty ) - by UnknownOwner - 06.06.2014, 09:50
Re: How to Make A Admin Duty Cmd ( /onduty ) - by RajatPawar - 06.06.2014, 10:16

Forum Jump:


Users browsing this thread: 1 Guest(s)