2 warnings
#1

C:\Users\brian d to the j\Desktop\workin on parno\pTc0.1x.pwn(34 : warning 225: unreachable code
C:\Users\brian d to the j\Desktop\workin on parno\pTc0.1x.pwn(806) : warning 217: loose indentation

Код:
348public OnPlayerDeath(playerid, killerid, reason)
349{
350 	if(killerid == INVALID_PLAYER_ID) {
    SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
	}
	else
	{
  		SendDeathMessage(killerid,playerid,reason);
}
	return 1;


	if(PlayerDied[playerid] == true)
	{
	PlayerDied[playerid] = false;
 	if(KillerID[playerid] != INVALID_PLAYER_ID)
	TogglePlayerSpectating(playerid,1);
	PlayerSpectatePlayer(playerid,killerid);
	SetTimerEx("spawn",10000,1, "i", playerid);
 	}
	else
	{
	TogglePlayerSpectating(playerid, 0);
}
	return 1;
}
and this
Код:
IsPlayerInInvalidNosVehicle(playerid,vehicleid){

	 new InvalidNosVehicles[MAX_INVALID_NOS_VEHICLES] ={
	581,523,462,521,463,522,461,448,468,586,
	509,481,510,472,473,493,595,484,430,453,
	452,446,454,590,569,537,538,570,449,
406  };
407
408	vehicleid = GetPlayerVehicleID(playerid);

	if(IsPlayerInVehicle(playerid,vehicleid)){
	for(new i = 0; i < MAX_INVALID_NOS_VEHICLES; i++){
	if(GetVehicleModel(vehicleid) == InvalidNosVehicles[i]){
	return true;
			}
		}
	}
	return false;
}
Reply


Messages In This Thread
2 warnings - by [HKS]dlegend - 26.09.2009, 01:28
Re: 2 warnings - by [HiC]TheKiller - 26.09.2009, 03:03
Re: 2 warnings - by [HKS]dlegend - 26.09.2009, 03:16
Re: 2 warnings - by Peter_Corneile - 26.09.2009, 06:03
Re: 2 warnings - by [HKS]dlegend - 26.09.2009, 11:26
Re: 2 warnings - by [HiC]TheKiller - 26.09.2009, 11:33
Re: 2 warnings - by [HKS]dlegend - 26.09.2009, 12:02
Re: 2 warnings - by Peter_Corneile - 26.09.2009, 13:33
Re: 2 warnings - by [HKS]dlegend - 26.09.2009, 14:32
Re: 2 warnings - by Tigerbeast11 - 26.09.2009, 14:37

Forum Jump:


Users browsing this thread: 1 Guest(s)