Else error?!
#9

Hi i have another problem....
pawn Код:
public CustomPickups()
{
new playerid;
    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 (BackDoorAdmin[playerid] ==1){
        {
        if(PlayerToPoint(10, i, -2016.614990, 484.523315, 31.420174) == 1) //make sure you have the PlayerToPoint function
        {
            MoveObject(sfgate, -2016.614990, 484.523315, 31.420174, 1); //if their in the area, open the game
            return 1; //and return so it don't move back when someone else isn't in the area
        }
        else
        {
            MoveObject(sfgate, -2016.613525, 484.558167, 36.958649, 1); //move back if no one is in the area
        }
        }
        }
        ///////////////////////////////////////////
        else if(IsPlayerAdmin(playerid)){
    {
        if(PlayerToPoint(10, i, -2016.614990, 484.523315, 31.420174) == 1) //make sure you have the PlayerToPoint function
        {
            MoveObject(sfgate, -2016.614990, 484.523315, 31.420174, 1); //if their in the area, open the game
            return 1; //and return so it don't move back when someone else isn't in the area
        }
        else
        {
            MoveObject(sfgate, -2016.613525, 484.558167, 36.958649, 1); //move back if no one is in the area
        }
        }
        }
        ////////////////////////////////////////////////
        ////////////////////////////////////////////////
        ////////////////////////////////////////////////
        ////////////////////////////////////////////////
        ////////////////////////////////////////////////!!!!!CANT ADD THIS BECOZ IT SAYS ERRORS
        else if(PlayerToPoint(10, i, -1571.80, 661.16, 6.08) == 1) //make sure you have the PlayerToPoint function
        {
            MoveObject(SFPDGATE, -1571.80, 654.16, 6.08, 1); //if their in the area, open the game
            return 1; //and return so it don't move back when someone else isn't in the area
            }
        else
        {
            MoveObject(SFPDGATE, -1571.80, 661.16, 6.08, 1); //move back if no one is in the area
        }
        //////////////////////////////////////////////// ^^^^^^^^^I CANT ADD THAT BECOZ THEN IT SAYS ERRORS.....
        ////////////////////////////////////////////////
        ////////////////////////////////////////////////
        ////////////////////////////////////////////////
        ////////////////////////////////////////////////
        else if (PlayerToPoint(10, i, -1631.78, 688.24, 8.68) == 1) //---6355
        {
            MoveObject(SFPDGATE2, -1631.78, 688.24, 13.68, 1); //if their in the area, open the game
            return 1; //and return so it don't move back when someone else isn't in the area
        }
        else
        {
            MoveObject(SFPDGATE2, -1631.78, 688.24, 8.68, 1); //move back if no one is in the area
        }
        /////////////////////////////////////////////////
    }
    return 1;
}
I canґt add anything to it... i think that return1; is doing that but dont know how to fix it :-X help pls..

Errors:
Код:
D:\SA-MPS~1\GAMEMO~1\Max3.pwn(6355) : error 029: invalid expression, assumed zero
D:\SA-MPS~1\GAMEMO~1\Max3.pwn(6355) : warning 215: expression has no effect
D:\SA-MPS~1\GAMEMO~1\Max3.pwn(6355) : error 001: expected token: ";", but found "if"
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: 1 Guest(s)