[HELP] Facing some errors
#1

L:baba PC\Baba Script\Gamemodes\blablabla.pwn(53165) : warning 209: function "MessageToZ" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2017, ITB CompuPhase


Код:
CMDMessageToZ(playerid,command[])
{
	new string[128];
	GetPlayerName(playerid,string,sizeof(string));
	format(string,sizeof(string),"[ZMember] '%s' (Level: %d) | Command: %s",string,PlayerInfo[playerid][Z],command);
 	MessageToZ(blue,string);
	return 1;
}
	forward MessageToZ(color,const string[]);
	public MessageToZ(color,const string[])
	{
	    for(new i = 0; i < MAX_PLAYERS; i++)
	    {
	        if(IsPlayerConnected(i) == 1)
	        if(PlayerInfo[i][Z] >= 1) {
			if(PlayerInfo[i][LoggedIn] == 1) {
	        SendClientMessage(i, color, string); }
	        return 1;
	    }
     }
   }
Reply


Messages In This Thread
[HELP] Facing some errors - by Shemaz - 02.08.2017, 20:22
Re: [HELP] Facing some errors - by Misiur - 02.08.2017, 20:28
Re: [HELP] Facing some errors - by Shemaz - 02.08.2017, 20:31
Re: [HELP] Facing some errors - by TopShooter2 - 02.08.2017, 20:35
Re: [HELP] Facing some errors - by jlalt - 02.08.2017, 20:41
Re: [HELP] Facing some errors - by Shemaz - 04.08.2017, 14:41

Forum Jump:


Users browsing this thread: 1 Guest(s)