04.08.2011, 16:24
Quote:
You can't use 'cmdtext' in zcmd commands, you can only use params. And you need to use the square parenthesis to allocate a string to your command, failure to add the '[]' after params will result in your command only parsing an integer as your command parameters. cmdtext is the string/variable used in OnPlayerCommandText but zcmd manipulates the string and parses a newly created/formatted string to contain the command parameters.
In short: pawn Код:
|
Quote:
params is very useful, as it is used to check what is typed after the command, cmdtext can be used the same way by typing the length of the command:
pawn Код:
pawn Код:
|
If you use ZCMD in a FS, and in a GM you use OnPlayerCommandText, does it still affect the OnPlayerCommandText in the GM, or..?