CHat Radio Team
#7

Quote:
Originally Posted by Lautaro_eb
Poblema.
Код:
  
 public OnPlayerCommandText(playerid, cmdtext[])
 {
  return 1;
  }
 dcmd(r, 1, cmdtext);
  return 0;
}

dcmd_r(playerid, params[])
{
	new text[256];
	new name[60];
	if(sscanf(params, "s", text)) SendClientMessage(playerid, 0xFFFF00FF, "USA: /R <texto>");
	else
	{
	  new string[322];
	  GetPlayerName(playerid, name, 60);
	  format(string, 322, "(%s) (Radio): %s", name, text);
	  for(new i=0;i<MAX_PLAYER;i++)
	  {
	    if(IsPlayerConnected(i))
	    {
	    	if(gTeam[i] == gTeam[playerid])
	    	{
	    	  SendClientMessage(i, 0xFF0080FF, string);
				}
			}
		}
	}
	return 1;
}
Errores.
Код:
D:\Lautaro\Server samp 0.3a\gamemodes\GI.pwn(374) : error 017: undefined symbol "sscanf"
D:\Lautaro\Server samp 0.3a\gamemodes\GI.pwn(380) : error 017: undefined symbol "MAX_PLAYER"
D:\Lautaro\Server samp 0.3a\gamemodes\GI.pwn(393) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
definistes sscanf
Reply


Messages In This Thread
CHat Radio Team - by Lautaro_eb - 26.03.2010, 03:10
Re: CHat Radio Team - by TheChaoz - 26.03.2010, 03:56
Re: CHat Radio Team - by Lautaro_eb - 26.03.2010, 10:35
Re: CHat Radio Team - by CristianTdj - 26.03.2010, 14:40
Re: CHat Radio Team - by Zamaroht - 26.03.2010, 16:14
Re: CHat Radio Team - by Lautaro_eb - 26.03.2010, 16:32
Re: CHat Radio Team - by xenowort - 26.03.2010, 17:18
Re: CHat Radio Team - by Lautaro_eb - 26.03.2010, 17:52
Re: CHat Radio Team - by xenowort - 26.03.2010, 18:45
Re: CHat Radio Team - by Lautaro_eb - 26.03.2010, 18:47

Forum Jump:


Users browsing this thread: 1 Guest(s)