Save Player Colour
#9

Quote:
Originally Posted by Stigg
Посмотреть сообщение
Aswell, i dont think you can have spaces "/cc 1" in your commands.
Why not?

Although now that you brought my attention to that part of the code, why are people constantly using a length of 10 in their strcmp check for the command text comparison? It's like an obsession, but it's completely useless in all of these cases. Why do they even specify a length?

pawn Код:
if (strcmp("/color save", cmdtext, true) == 0)
That does the exact same thing, without the hassle of having to count up the length and insert it. The only reason you should be specifying a length is if you want to see if just part of the strings match.
Reply


Messages In This Thread
Save Player Colour - by Davz*|*Criss - 19.03.2011, 14:16
Re: Save Player Colour - by bijoyekuza - 19.03.2011, 14:55
Re: Save Player Colour - by Davz*|*Criss - 19.03.2011, 17:22
Re: Save Player Colour - by Stigg - 19.03.2011, 17:25
Re: Save Player Colour - by bijoyekuza - 19.03.2011, 17:26
Re: Save Player Colour - by Davz*|*Criss - 19.03.2011, 17:44
Re: Save Player Colour - by JaTochNietDan - 19.03.2011, 17:46
Re: Save Player Colour - by Stigg - 19.03.2011, 17:46
Re: Save Player Colour - by JaTochNietDan - 19.03.2011, 17:49
Re: Save Player Colour - by Davz*|*Criss - 19.03.2011, 18:06

Forum Jump:


Users browsing this thread: 1 Guest(s)