[How To] Numeric command
#1

Hello all ,
Sup ?

Ok Listen How To Do The Command /Help and a topic next to him so this : /Help 1
i can't do this in space someone told me with strtock :S
What is this and how to do it ?

and how to do /Help .. Shows You A SendClientMessage's and also /Help 1
backs with error = "USAGE:/Help 1-4

thanks,
Reply
#2

pawn Код:
if(!strcmp(cmd,"/help",true))
{
  cmd=strtok(cmdtext,idx);
  if(!strlen(cmd)) return SendClientMessage(playerid,COLOR_GREY,"USAGE: /help [1-4]");
  if(!strcmp(cmd,"1",true))
  {
    SendClientMessage(playerid,COLOR,"Help text 1.");
  }
  else if(!strcmp(cmd,"2",true))
  {
    SendClientMessage(playerid,COLOR_GREY,"Help text 2.");
  }// etc etc..
Reply
#3

don't work

Reply
#4

Show your code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)