Else error?!
#5

You can use as much else if's as you want. Here is the example of how to fix your code:

pawn Код:
public CustomPickups()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if (PlayerToPoint(3, i,2026.4064,1017.9352,10.8203)) // Bank
        {
             GameTextForPlayer(i, "~y~Vitaj v ~y~Banke~n~~w~Napis /enterbank aby si vosiel dnu", 5000, 5);
             printf("Vitajvbanke");
         }
    }
    else if (PlayerToPoint(2, i,1315.3907,1436.6250,55.0039)) //Raketa
    {
        GameTextForPlayer(i, "~y~Houhouhou skuska", 5000, 5);
        printf("Vitajvbanke");
    }
    else if (PlayerToPoint(2, i,1456.3907,1789.6250,255.0039)) //asd
    {
        GameTextForPlayer(i, "~y~asd", 5000, 5);
        printf("asd");
    }
    else
    {
        return true;
    }
}
Reply


Messages In This Thread
Else error?! - by max007 - 07.02.2009, 09:17
Re: Else error?! - by Extremo - 07.02.2009, 09:33
Re: Else error?! - by max007 - 07.02.2009, 09:43
Re: Else error?! - by max007 - 07.02.2009, 09:46
Re: Else error?! - by Extremo - 07.02.2009, 15:10
Re: Else error?! - by Nero_3D - 07.02.2009, 15:58
Re: Else error?! - by Extremo - 07.02.2009, 19:47
Re: Else error?! - by max007 - 07.02.2009, 20:11
Re: Else error?! - by max007 - 07.02.2009, 20:40
Re: Else error?! - by max007 - 07.02.2009, 20:44

Forum Jump:


Users browsing this thread: 2 Guest(s)