12.07.2009, 19:22
hello. is there a way to fix this code? is it fixable or is it impossible
Edit: i get 1 warning:
Код:
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; } }
Код:
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.