Laser color.
#6

Quote:
Originally Posted by Dan.
Посмотреть сообщение
Does It matter if it's:
pawn Код:
if(!strcmp(params, "red", true))
or:
pawn Код:
if(strcmp(params, "red", false))
.
Yes it does. ! checks if strcmp is FALSE, strcmp returns FALSE if the strings MATCH, which is what you want. The true is so if a player typed 'RED' or 'Red' it will still work (case insensitive).
Reply


Messages In This Thread
Laser color. - by Dan. - 26.07.2012, 11:06
Re: Laser color. - by [IKS]Niko_Hs™ - 26.07.2012, 11:20
Re: Laser color. - by MP2 - 26.07.2012, 11:21
Re: Laser color. - by Dan. - 26.07.2012, 11:30
Re: Laser color. - by Kindred - 26.07.2012, 11:32
Re: Laser color. - by MP2 - 26.07.2012, 13:48

Forum Jump:


Users browsing this thread: 1 Guest(s)