will this ever work? is there a way to fix it?
#1

hello. is there a way to fix this code? is it fixable or is it impossible

Код:
stock SendAdminMessage(Message[])
	for(new i; i<MAX_PLAYERS; i++) {
	  if(IsPlayerAdmin(i)) {
			new name[MAX_PLAYER_NAME];
            new string[256];
			GetPlayerName(i, name, sizeof(name));
			format(string, sizeof(string), "%s used command: %s", name, Message);
			SendClientMessage(i,LIGHTBLUE, string);
			return 1; } }
Edit: i get 1 warning:

Код:
C:\SAMPSE~1\FILTER~1\manhunt.pwn(91) : warning 209: function "SendAdminMessage" should return a value
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Reply


Messages In This Thread
will this ever work? is there a way to fix it? - by [GF]sIdEkIcK - 12.07.2009, 19:22
Re: will this ever work? is there a way to fix it? - by dice7 - 12.07.2009, 19:30
Re: will this ever work? is there a way to fix it? - by Weirdosport - 12.07.2009, 19:34
Re: will this ever work? is there a way to fix it? - by [GF]sIdEkIcK - 12.07.2009, 19:35

Forum Jump:


Users browsing this thread: 1 Guest(s)