error 021: symbol already defined: "DACaptured"
#1

error 021: symbol already defined: "DACaptured"
error 010: invalid function or declaration

Код:
function DA(playerid)
{
	DACaptured(playerid); // This error 021
    return 1; // this error 010
}
Reply
#2

Hi!

Have you defined DaCaptured multiple times? If so then delete one define of them.
Reply
#3

Quote:
Originally Posted by Mencent
Посмотреть сообщение
Hi!

Have you defined DaCaptured multiple times? If so then delete one define of them.
I did not understand you, I use with DACaptured Once
Reply
#4

Yes, you use once, but defined you DaCaptured multiple times? You can search this with STRG + F.
Reply
#5

Quote:
Originally Posted by Mencent
Посмотреть сообщение
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;
}
This is the stock I dont find other define or use with stock
Reply
#6

Check your includes and filterscripts. The function IS defined somewhere else.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)