Something is wrong with my afk cmd...
#1

Hey,
I want to make the cmd /afk [minutes].But with my code it says for exemple: "Player (ID:0) is now in AFK-Mode ! Minutes:z"

Here is my script:
Код:
  	if(strcmp(cmd, "/afk", true) == 0)
  {
  new tmp[128];
  tmp = strtok(cmdtext, idx);
  if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /afk [minutes]");
  new name[MAX_PLAYER_NAME+1];
  new string[128];
  GetPlayerName(playerid, name, sizeof(name));
  format(string, sizeof(string), "%s (ID:%i) is now in AFK-Mode ! Minutes:%z.", name,playerid,strlen(tmp));
  SendClientMessageToAll(0xDBD993FF,string);
  return 1;
  }
I hope someone will find whatґs wrong...
Reply


Messages In This Thread
Something is wrong with my afk cmd... - by SEC - 03.02.2009, 14:07
Re: Something is wrong with my afk cmd... - by Ycto - 03.02.2009, 14:39
Re: Something is wrong with my afk cmd... - by SEC - 03.02.2009, 14:54
Re: Something is wrong with my afk cmd... - by Ycto - 03.02.2009, 15:04
Re: Something is wrong with my afk cmd... - by mabako - 03.02.2009, 15:06
Re: Something is wrong with my afk cmd... - by SEC - 03.02.2009, 15:09
Re: Something is wrong with my afk cmd... - by Ycto - 03.02.2009, 18:35

Forum Jump:


Users browsing this thread: 1 Guest(s)