SA-MP Forums Archive
/announce command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /announce command (/showthread.php?tid=174322)



/announce command - Face9000 - 05.09.2010

Hi all,i need /announce command.

Example:

When i write /announce bla bla

The text will show as textdraw on the middle of game.

Thanks


Re: /announce command - skaTim - 05.09.2010

Код:
if(strcmp(cmd, "/announce", true) == 0){
    if (PlayerInfo[playerid][power]>0){ // power = admin (change it)
	if (strlen(rest)==0){
		SendClientMessage(playerid, COLOR_GREENYELLOW, "You didn't enter a message.");
		return 1;
	}
	GameTextForAll(rest,5000,4);
	return 1;
    }
}
Here you go.


Re: /announce command - Face9000 - 05.09.2010

Код:
C:\Documents and Settings\Utente\Desktop\announce.pwn(1) : error 010: invalid function or declaration
C:\Documents and Settings\Utente\Desktop\announce.pwn(2) : error 010: invalid function or declaration
C:\Documents and Settings\Utente\Desktop\announce.pwn(3) : error 010: invalid function or declaration
C:\Documents and Settings\Utente\Desktop\announce.pwn(5) : error 010: invalid function or declaration
C:\Documents and Settings\Utente\Desktop\announce.pwn(8) : error 010: invalid function or declaration
C:\Documents and Settings\Utente\Desktop\announce.pwn(11) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.



Re: /announce command - skaTim - 05.09.2010

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
Код:
C:\Documents and Settings\Utente\Desktop\announce.pwn(1) : error 010: invalid function or declaration
C:\Documents and Settings\Utente\Desktop\announce.pwn(2) : error 010: invalid function or declaration
C:\Documents and Settings\Utente\Desktop\announce.pwn(3) : error 010: invalid function or declaration
C:\Documents and Settings\Utente\Desktop\announce.pwn(5) : error 010: invalid function or declaration
C:\Documents and Settings\Utente\Desktop\announce.pwn(8) : error 010: invalid function or declaration
C:\Documents and Settings\Utente\Desktop\announce.pwn(11) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
This is not a FS, its a simply command, add it to ur GM..


Re: /announce command - Wennicke - 05.09.2010

Put it under "public OnPlayerCommandText"


Re: /announce command - Anthonyx3' - 05.09.2010

Lol. Add the command into your game mode, not a file on your desktop.

Quote:

This forum requires that you wait 120 seconds between posts. Please try again in 24 seconds.

edit: Dam ya posted first cause stupid timer xD


Re: /announce command - Face9000 - 05.09.2010

rofl my fail XD