/announce command
#1

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
Reply
#2

Код:
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.
Reply
#3

Код:
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.
Reply
#4

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..
Reply
#5

Put it under "public OnPlayerCommandText"
Reply
#6

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
Reply
#7

rofl my fail XD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)