else if else etc.
#6

pawn Код:
public OnPlayerFinishMission(playerid)
{
    SetPlayerScore(playerid, GetPlayerScore(playerid) + 3);
    new pname[24],string[100];
    GetPlayerName(playerid,pname,24);
    if(IsSmallAirCraftMission[playerid]) format(string,sizeof(string), "%s completed %s in a dodo",pname,SmallAirCraftMissionRandom[MissionArrayID[playerid]][MissionName]);
    else if(IsCargoAirCraftMission[playerid]) format(string,sizeof(string), "%s completed %s in a Nevada",pname,CargoAirCraftMissionRandom[MissionArrayID[playerid]][MissionName]);
    else format(string,sizeof(string), "%s completed %s in a shamal",pname,PilotMissionRandom[MissionArrayID[playerid]][MissionName]);
    SendClientMessageToAll(COLOR_YELLOW,string);
    return 1;
}
Reply


Messages In This Thread
else if else etc. - by Haydz - 15.11.2010, 22:13
Re: else if else etc. - by 6d - 15.11.2010, 22:24
Re: else if else etc. - by Haydz - 15.11.2010, 22:28
Re: else if else etc. - by 6d - 15.11.2010, 22:29
Re: else if else etc. - by Haydz - 15.11.2010, 22:44
Re: else if else etc. - by Jefff - 15.11.2010, 22:51
Re: else if else etc. - by 6d - 15.11.2010, 22:54
Re: else if else etc. - by Haydz - 16.11.2010, 02:30

Forum Jump:


Users browsing this thread: 1 Guest(s)