14.11.2009, 17:13
what is wrong with this?:
i get this errors:
pawn Код:
public OnGameModeMission()
{ if(pdebug == 1){print("[DEBUG] OnGameModeMission()");}
new string[128];
new rcashbox;
if(MissionActive == 1)
{
if(PlayerIsDoingMission == INVALID_PLAYER_ID)
{
ResetMissions();
RandomCashboxMissionMoney = MinCashboxMissionMoney+random(MaxCashboxMissionMoney-MinCashboxMissionMoney);
format(string, sizeof(string), "** Mission: Cashbox **: Find the cashbox at %s! Worth: $%d,-", RandomFindCashboxName_LS[rcashbox][0], RandomCashboxMissionMoney);
format(string, sizeof(string), "** Mission: Cashbox **: Find the cashbox at %s! Worth: $%d,-", RandomFindCashboxName_SF[rcashbox][0], RandomCashboxMissionMoney);
SendClientMessageToAll(COLOR_YELLOW, string);
new Float:ratio = 4.0;
for(new i=0; i<MAX_SLOTS; i++)
{
SetPlayerCheckpoint(i, RandomFindCashbox_LS[rcashbox][0], RandomFindCashbox_LS[rcashbox][1], RandomFindCashbox_LS[rcashbox][2], ratio);
SetPlayerCheckpoint(i, RandomFindCashbox_SF[rcashbox][0], RandomFindCashbox_SF[rcashbox][1], RandomFindCashbox_SF[rcashbox][2], ratio);
}
CheckpointBusyX = RandomFindCashbox_LS[rcashbox][0];
CheckpointBusyY = RandomFindCashbox_LS[rcashbox][1];
CheckpointBusyZ = RandomFindCashbox_LS[rcashbox][2];}
CheckpointBusyX = RandomFindCashbox_SF[rcashbox][0];
CheckpointBusyY = RandomFindCashbox_SF[rcashbox][1];
CheckpointBusyZ = RandomFindCashbox_SF[rcashbox][2];}
AllPlaySound(1139);
return 1;
}
if(MissionActive >= 2)
{
ResetMissions();
MissionActive = 1;
OnGameModeMission();
return 1;
}
pawn Код:
C:\Documents and Settings\Administrator\Bureaublad\RealLife RPG Server\gamemodes\frpg.pwn(2997) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Bureaublad\RealLife RPG Server\gamemodes\frpg.pwn(3000) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Bureaublad\RealLife RPG Server\gamemodes\frpg.pwn(3001) : error 021: symbol already defined: "OnGameModeMission"
C:\Documents and Settings\Administrator\Bureaublad\RealLife RPG Server\gamemodes\frpg.pwn(3002) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.