12.09.2010, 09:57
Quote:
|
pawn Код:
The strcmp thing: strcmp compares two "strings" to see if they are the same. if (strcmp("/breakout", cmdtext, true, 5) == 0) If "/breakout" is the same as cmdtext(what was typed by the player), then execute the command. "true" is wether or not to check for upper/lower case letters. If it is "false", "Hello" and "hEllo" are not the same. If it's true, they are the same. |
pawn Код:
(!strcmp("/breakout", cmdtext, true, 5) == 0)


