26.09.2009, 01:28
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
and this
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; }
Код:
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; }