3 includes, one public and error 021
#1

Hello, I have 3 includes which benefit from public OnPlayerClickPlayerTextDraw. Gives me an error "error 021: symbol already defined". I know what he means. Simple examples of how colors and other small problems i can fix it but this I can not .


on first include i have so

Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{

	//code


	#if defined Dialog_OnPlayerClickTextDraw
       	return Dialog_OnPlayerClickTextDraw(playerid, clickedid);
	#else
	   	return 0;
	#endif
}
#if defined _ALS_OnPlayerClickTextDraw
    #undef OnPlayerClickTextDraw
#else
    #define _ALS_OnPlayerClickTextDraw
#endif
#define OnPlayerClickTextDraw Dialog_OnPlayerClickTextDraw
#if defined Dialog_OnPlayerClickTextDraw
    forward Dialog_OnPlayerClickTextDraw(playerid, Text:clickedid);
#endif


public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{

	//code

//I have it at the end public

#if defined Dialog_OnPlayerClickPlayerTD
       	return Dialog_OnPlayerClickPlayerTD(playerid, playertextid);
	#else
	   	return 0;
	#endif
}

#define OnPlayerClickPlayerTextDraw Dialog_OnPlayerClickPlayerTD
#if defined Dialog_OnPlayerClickPlayerTD
    forward Dialog_OnPlayerClickPlayerTD(playerid, PlayerText:playertextid);
#endif
and second include i have so


Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
	//code

	return CallLocalFunction("AC_OPCTD_ACM", "ii", playerid, _:clickedid);
}
#if defined _ALS_OnPlayerClickTextDraw
	#undef OnPlayerClickTextDraw
#else
	#define _ALS_OnPlayerClickTextDraw
#endif
#define OnPlayerClickTextDraw AC_OPCTD_ACM
forward AC_OPCTD_ACM(playerid, Text:clickedid);

public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
	//code
	
	return CallLocalFunction("AC_OPCPTD_ACM", "ii", playerid, _:playertextid);
}
#if defined _ALS_OnPlayerClickPlayerTD
	#undef OnPlayerClickPlayerTextDraw
#else
	#define _ALS_OnPlayerClickPlayerTD
#endif
#define a_OnPlayerClickPlayerTextDraw AC_OPCPTD_ACM

forward AC_OPCPTD_ACM(playerid, PlayerText:playertextid);
I already haven't ideas on this. Please help because i never met with this and i may broaden my knowledge
Reply


Messages In This Thread
3 includes, one public and error 021 - by wampiros6 - 21.04.2016, 15:49
Re: 3 includes, one public and error 021 - by Konstantinos - 21.04.2016, 15:54
Re: 3 includes, one public and error 021 - by wampiros6 - 21.04.2016, 16:09
Re: 3 includes, one public and error 021 - by Gammix - 21.04.2016, 16:11
Re: 3 includes, one public and error 021 - by wampiros6 - 21.04.2016, 16:18
Re: 3 includes, one public and error 021 - by Gammix - 21.04.2016, 16:20
Re: 3 includes, one public and error 021 - by wampiros6 - 21.04.2016, 16:23
Re: 3 includes, one public and error 021 - by Gammix - 21.04.2016, 16:28
Re: 3 includes, one public and error 021 - by wampiros6 - 21.04.2016, 16:53

Forum Jump:


Users browsing this thread: 1 Guest(s)