function DA(playerid)
{
DACaptured(playerid); // This error 021
return 1; // this error 010
}

|
Hi!
![]() Have you defined DaCaptured multiple times? If so then delete one define of them. |
|
Yes, you use once, but defined you DaCaptured multiple times? You can search this with STRG + F.
![]() |
stock DACaptured(playerid)
{
Captured[playerid][DA] = 1;
UnderAttack[DA] = false;
IsPlayerCapturing[playerid][DA] = 0;
KillTimer(timer[playerid][DA]);
CountVar[playerid][DA] = 25;
GivePlayerScore(playerid, 5);
GivePlayerMoney(playerid, 5000);
for(new num = 0; num < 4; num++)
{
TextDrawHideForPlayer(playerid, ZoneTD[num]);
}
SendClientMessage(playerid, -1, "{F7C972}You got {ffffff}+5 {F7C972}scores and {ffffff}+$5000 {F7C972}cash for this area!");
StartLoop(i)
{
if(gTeam[i] == gTeam[playerid] && i != playerid)
{
SendClientMessage(i, -1, "( {FFBB11}Info {FFFFFF}): Your team has captured DA! You received +1 score for it!");
GivePlayerScore(i, 1);
}
}
tCP[DA] = gTeam[playerid];
GangZoneStopFlashForAll(Zone[DA]);
switch(gTeam[playerid])
{
case TEAM_USA: GangZoneShowForAll(Zone[DA], USA_COLOR);
case TEAM_AUSTRALIA: GangZoneShowForAll(Zone[DA], AUSTRALIA_COLOR);
case TEAM_AFGHANISTAN: GangZoneShowForAll(Zone[DA], AFGHANISTAN_COLOR);
case TEAM_RUSSIAN: GangZoneShowForAll(Zone[DA], RUSSIAN_COLOR);
case TEAM_UNITEDKINDOM: GangZoneShowForAll(Zone[DA], UNITEDKINDOM_COLOR);
}
return 1;
}