Some problems.
#7

A big mistake that I have seen thousand times.
Many people use it like this
pawn Код:
if (strcmp("/command", cmdtext, true, 10) == 0)
in many commands.
For example:
pawn Код:
if (strcmp("/ak", cmdtext, true, 10) == 0)

// Or

if (strcmp("/ak", cmdtext, true, 2) == 0)
Isn't 2 or 10. It's
pawn Код:
if (strcmp("/ak", cmdtext, true, 3) == 0)
".." / >1 || a >2 || k >3
Reply


Messages In This Thread
Some problems. - by nogh445 - 20.11.2011, 16:39
Re: Some problems. - by Tanush123 - 20.11.2011, 16:49
Re: Some problems. - by nogh445 - 20.11.2011, 16:55
Re: Some problems. - by SmiT - 20.11.2011, 17:00
Re: Some problems. - by nogh445 - 20.11.2011, 17:03
Re: Some problems. - by Tanush123 - 20.11.2011, 17:03
Re: Some problems. - by Kostas' - 20.11.2011, 17:09
Re: Some problems. - by nogh445 - 20.11.2011, 17:12
Re: Some problems. - by SmiT - 20.11.2011, 17:16
Re: Some problems. - by Tanush123 - 20.11.2011, 19:43

Forum Jump:


Users browsing this thread: 1 Guest(s)