[HELP] If there are 2 if
#7

It's dependable, if you want to have else for both together, it should be like that:

pawn Код:
if(GetPlayerSkin(playerid) == 125 && GetPlayerColor(playerid) == COLOR_RED)
{
    // Your code if the player does have them both.
    return 1;
}
else
{
    // Your code if the player doesn't have one of them.
    return 1;
}

// ------------------------------------------------------------- //

if(GetPlayerSkin(playerid) == 125)
{
    // Your code if the player does have the skin.
    return 1;
}
else
{
    // If not.
    return 1;
}

if(GetPlayerColor(playerid) == COLOR_RED)
{
    // Your code if the player does have color.
    return 1;
}
else
{
    // If not.
    return 1;
}
Reply


Messages In This Thread
[HELP] If there are 2 if - by V4at - 27.06.2012, 11:05
Re: [HELP] If there are 2 if - by Skaizo - 27.06.2012, 11:21
Re: [HELP] If there are 2 if - by newbienoob - 27.06.2012, 11:21
Re: [HELP] If there are 2 if - by [MM]RoXoR[FS] - 27.06.2012, 11:22
Re : [HELP] If there are 2 if - by V4at - 27.06.2012, 11:29
Re: [HELP] If there are 2 if - by SKAzini - 27.06.2012, 12:51
Re: [HELP] If there are 2 if - by Randy More - 27.06.2012, 12:56

Forum Jump:


Users browsing this thread: 3 Guest(s)