Buy license
#2

I don't know if it's causing the problems but the return 1 is in the wrong place I think.. and the indentation isn't very good.. What exactly is wrong with it?

pawn Код:
if(strcmp(cmd, "/buylicense flying", true)== 0)
    {
    if(IsPlayerConnected(playerid))
        {
            if(PlayerToPoint(3.0,playerid, 369.4747,186.4138,1008.3893))
                {
            SendClientMessage(playerid, COLOR_YELLOW, "kupio si licencu za letenje");
                GivePlayerMoney(playerid, - 20000);
                PlayerInfo[playerid][pFlyLic] = 0;
                }
        }
    return 1;
    }
My only other guess is that the PlayerToPoint is malfunctioning.
Reply


Messages In This Thread
Buy license - by Tony_Cobra - 09.04.2009, 22:27
Re: Buy license - by Weirdosport - 09.04.2009, 22:30
Re: Buy license - by Tony_Cobra - 09.04.2009, 22:44
Re: Buy license - by miokie - 09.04.2009, 23:36
Re: Buy license - by Weirdosport - 10.04.2009, 00:01
Re: Buy license - by Frank_Tesla - 10.04.2009, 03:47
Re: Buy license - by Lastman - 10.04.2009, 05:52
Re: Buy license - by tom_jonez - 10.04.2009, 06:32
Re: Buy license - by Frank_Tesla - 10.04.2009, 06:52
Re: Buy license - by Tony_Cobra - 10.04.2009, 10:03

Forum Jump:


Users browsing this thread: 2 Guest(s)