04.08.2011, 13:36
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:
In short:
pawn Код:
COMMAND:blabla(playerid, cmdtext) // no
COMMAND:blabla(playerid, cmdtext[]) // no
COMMAND:blabla(playerid, params) // no
COMMAND:blabla(playerid, params[]) // yes