Invalid Function or Declaration
#1

This is my code

pawn Код:
CMD:neon(playerid, params[])
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
            {
                SendClientMessage(playerid, COLOR_WHITE, "You are not the driver");
                return 1;
            }
            ShowPlayerDialog(playerid, NEON, DIALOG_STYLE_LIST, "Choose your neon colour","Blue\nGreen\nYellow\nWhite\nPink\nTurn off Neon","Add","Close");
        }
        else
        {
            SendClientMessage(playerid, COLOR_WHITE, "You are not in a vehicle");
        }
        return 1;
    }
    return 0;
}
.


This is the line that's acting like a hoe. ( It's the return 0; )
pawn Код:
}
    return 0;
}
Reply


Messages In This Thread
Invalid Function or Declaration - by Eminem 2ka9 - 18.03.2013, 22:04
Re: Invalid Function or Declaration - by Patrick - 18.03.2013, 22:07
Re: Invalid Function or Declaration - by Eminem 2ka9 - 18.03.2013, 22:17
Re: Invalid Function or Declaration - by kamzaf - 18.03.2013, 22:22
Re: Invalid Function or Declaration - by Eminem 2ka9 - 18.03.2013, 22:32

Forum Jump:


Users browsing this thread: 1 Guest(s)