10.06.2011, 17:40
Thank you very much... I only get 1 warmning.... It is important:
The line is the SetPlayerCheckpoint one.
Код:
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.
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;
}