[Tutorial] AFK System
#6

Error founded:

pawn Code:
if(strcmp(cmdtext,"/afklist",true) == 0)
{
          for(new i = 0; i != MAX_PLAYERS; i++)
          {
                  new name[MAX_PLAYER_NAME], string[256];
                  GetPlayerName(i,name,sizeof(name));
                   format(string,sizeof(string),"AFK Set Player : %s (id : %i)",name,playerid);
         }
            SendClientMessage(playerid,-1,string);
       return 1;
}
To:

pawn Code:
if(strcmp(cmdtext,"/afklist",true) == 0)
{
          for(new i = 0; i < MAX_PLAYERS; i++)
          {
                  new name[MAX_PLAYER_NAME], string[50];
                  GetPlayerName(i,name,sizeof(name));
                   format(string,sizeof(string),"AFK Set Player : %s (id : %i)",name,i);
         }
            SendClientMessage(playerid,0xFF0000FF,string);
       return 1;
}
Reply


Messages In This Thread
How to make AFK script - by XStormiest - 26.06.2012, 08:35
Re: AFK System - by [M.A]Angel[M.A] - 31.07.2012, 14:34
Re: AFK System - by Dan. - 31.07.2012, 16:27
Respuesta: AFK System - by CaptainMactavish - 31.07.2012, 19:05
Re: AFK System - by MarTaTa - 01.08.2012, 06:17
Re: AFK System - by Tigerkiller - 02.08.2012, 20:17
Re: AFK System - by Squirrel - 02.08.2012, 21:36
Re: AFK System - by XStormiest - 04.08.2012, 17:21

Forum Jump:


Users browsing this thread: 1 Guest(s)