Edit this code...
#3

D:\Игри\GTA SA\GTA San Andreas Servers\Bulgarian Server\gamemodes\gangwars.pwn(2369) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.

Код:
new string[64], name[MAX_PLAYER_NAME];
	GetPlayerName(playerid,name,MAX_PLAYER_NAME);
	switch(reason)
	{
		case 0: format(string,sizeof string,"%s излезе от сървъра. (Прекъсна)",name);
		case 1: format(string,sizeof string,"%s излезе от сървъра. (Излезе)",name);
		case 2: format(string,sizeof string,"%s излезе от сървъра. (Кикнат/Баннат)",name);
	}
	SendClientMessageToAll(COLOR_WHITE,string);
	return 1;
is on 2369 line

Код:
public OnPlayerDisconnect(playerid, reason)
{
	new string[64], name[MAX_PLAYER_NAME];
	GetPlayerName(playerid,name,MAX_PLAYER_NAME);
	switch(reason)
	{
		case 0: format(string,sizeof string,"%s излезе от сървъра. (Прекъсна)",name);
		case 1: format(string,sizeof string,"%s излезе от сървъра. (Излезе)",name);
		case 2: format(string,sizeof string,"%s излезе от сървъра. (Кикнат/Баннат)",name);
	}
	SendClientMessageToAll(COLOR_WHITE,string);
	return 1;
	
    if(PlayerInEvent[playerid]!= 0)
    {
        EventPlayers --;
    }
    DestroyVehicle(PlayerCar[playerid]);
    OnPlayerDataSave(playerid);
    ResetStats(playerid);
	return 1;
}
Reply


Messages In This Thread
Edit this code... - by Join7 - 09.05.2011, 13:19
Re: Edit this code... - by Seven_of_Nine - 09.05.2011, 13:24
Re: Edit this code... - by Join7 - 09.05.2011, 13:27
Re: Edit this code... - by Seven_of_Nine - 09.05.2011, 13:34
Re: Edit this code... - by Join7 - 09.05.2011, 13:40
Re: Edit this code... - by Seven_of_Nine - 09.05.2011, 14:05
Re: Edit this code... - by Biesmen - 09.05.2011, 14:05
Re: Edit this code... - by Join7 - 09.05.2011, 14:18

Forum Jump:


Users browsing this thread: 1 Guest(s)