Announce cmd help Fixed Thx Dice7
#1

I'm trying to make a command to send a message with the player's name followed by a line of text, but for some reason fails me

Код:
forward Announcecmd(playerid,text1,text2,cartel);
public Announcecmd(playerid,text1,text2,cartel);
{
	new name[128];
 	GetPlayerName(playerid,name,MAX_PLAYER_NAME);
	format(name,sizeof(name),"%s %s",name,text1);
	SendClientMessageToAll(0x0099ccff,name);
	if cartel == 1
	{
    GameTextForPlayer(playerid,text2,5000,3);
	}
}
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/sf", cmdtext, true, 10) == 0)
	{
		Teleport(playerid,80,-1977.1107,285.8831,35.1719,0);
		Announcecmd(playerid,": go to /sf","asd",1);
		return 1;
	}
	return 0;
}
when i try compile show this errors
ChrisDM.pwn(390) : error 055: start of function body without function header
ChrisDM.pwn(392) : error 021: symbol already defined: "GetPlayerName"
ChrisDM.pwn(395) : error 010: invalid function or declaration
ChrisDM.pwn(406) : error 004: function "Announcecmd" is not implemented
Reply


Messages In This Thread
Announce cmd help Fixed Thx Dice7 - by [SOB]Chris - 13.09.2009, 19:35
Re: Announce cmd help - by dice7 - 13.09.2009, 19:43
Re: Announce cmd help - by [SOB]Chris - 13.09.2009, 20:02
Re: Announce cmd help - by dice7 - 13.09.2009, 20:04
Re: Announce cmd help - by legendario - 13.09.2009, 20:15
Re: Announce cmd help - by _Vortex - 13.09.2009, 20:17
Re: Announce cmd help - by legendario - 13.09.2009, 20:18

Forum Jump:


Users browsing this thread: 1 Guest(s)