Easy Checkpoints help.
#3

Thank you very much... I only get 1 warmning.... It is important:

Код:
C:\Users\Ricardo\Desktop\Script-Programaзгo\Script SA-MP\MyRP\MyRP\MyRP\gamemodes\myrp.pwn(1782) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
The line is the SetPlayerCheckpoint one.
pawn Код:
new Float:BCP[][3] =
{
    {1239.824462, -1716.014770, 13.385701},
    {1339.824462, -1716.014770, 13.385701},
    {1439.824462, -1716.014770, 13.385701},
    {1539.824462, -1716.014770, 13.385701}
};
new pCP[MAX_PLAYERS];

COMMAND:startbroute1(playerid, params[])
{
    if(PlayerInfo[playerid][Fmember] == 6)
    {
        pCP[playerid] = 0;
        return 1;
    }
    else return SendClientMessage(playerid, 0xFFFF00, "You are not Bus Driver.");
}

public OnPlayerEnterCheckpoint(playerid)
{
    if(pCP[playerid] != -1)
    {
        GivePlayerMoney(playerid, 10);
        if(pCP[playerid] < sizeof(BCP))
        {
            pCP[playerid]++;
            SetPlayerCheckpoint(playerid, BCP[pCP[playerid]][0], BCP[pCP[playerid]][1], BCP[pCP[playerid]][2]);
        }
        else
        {
            SendClientMessage(playerid, 0x999999AA, "Route finished");
            DisablePlayerCheckpoint(playerid);
            pCP[playerid] = -1;
        }
    }
    return 1;
}
Reply


Messages In This Thread
Easy Checkpoints help. - by ricardo178 - 10.06.2011, 17:23
Re: Easy Checkpoints help. - by Sascha - 10.06.2011, 17:32
Re: Easy Checkpoints help. - by ricardo178 - 10.06.2011, 17:40
Re: Easy Checkpoints help. - by ricardo178 - 10.06.2011, 17:47
Re: Easy Checkpoints help. - by sleepysnowflake - 10.06.2011, 17:50
Re: Easy Checkpoints help. - by Wesley221 - 10.06.2011, 17:51
Re: Easy Checkpoints help. - by Sascha - 10.06.2011, 17:52
Re: Easy Checkpoints help. - by ricardo178 - 10.06.2011, 18:02
Re: Easy Checkpoints help. - by Sascha - 10.06.2011, 18:08

Forum Jump:


Users browsing this thread: 1 Guest(s)