Some little questions
#3

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 Код:
if(cmdtext[5]) return //something
pawn Код:
if(strcmp(params,"hello") == 0) return SendClientMessage(playerid,-1,"The message you typed after the command was 'hello'"
These are commonly only used with 1 parameter command, then other scripting methods take place.
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: 1 Guest(s)