just one question.
#1

Hello,
I just wanted to ask that can I apply commands on others by replacing playerid to targetid,please post a small code for that.I realy want it please.Or just tell me that is is right or not.
Reply
#2

You can use Strtok or Sscanf.
Reply
#3

Can't it be done using strcmp?please help of yes.
Reply
#4

Quote:
Originally Posted by TaLhA XIV
Посмотреть сообщение
Can't it be done using strcmp?please help of yes.
You can use Strcmp + strtok or Strcmp + Sscanf,no problems
Reply
#5

Thanks
Reply
#6

pawn Код:
CMD:hi(targetid,params[])
{
     new name[MAX_PLAYER_NAME], string[9+MAX_PLAYER_NAME];
     GetPlayerName(targetid, name, MAX_PLAYER_NAME);
     format(string, 9+MAX_PLAYER_NAME, "%s says hi.",name);
     foreach(Player, i)
     {
              SendClientMessage(i, COLOR_YELLOW, string);
      }
      return 1;
}
Reply
#7

Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)