Some little questions
#2

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 Код:
COMMAND:blabla(playerid, cmdtext) // no
COMMAND:blabla(playerid, cmdtext[]) // no
COMMAND:blabla(playerid, params) // no
COMMAND:blabla(playerid, params[]) // yes
Reply


Messages In This Thread
Some little questions - by Wesley221 - 04.08.2011, 13:34
Re: Some little questions - by Calgon - 04.08.2011, 13:36
Re: Some little questions - by PinkFloydLover - 04.08.2011, 13:40
Re: Some little questions - by Toreno - 04.08.2011, 14:00
Re: Some little questions - by Wesley221 - 04.08.2011, 16:24

Forum Jump:


Users browsing this thread: 2 Guest(s)