SA-MP Forums Archive
error 017: undefined symbol "SendFormatMessageToAll" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 017: undefined symbol "SendFormatMessageToAll" (/showthread.php?tid=505865)



error 017: undefined symbol "SendFormatMessageToAll" - Slicebook - 10.04.2014

has been good .. now you do not
Wtf?

Код:
public RandomHirdetes()
{
	new hirdetes, fajl[64], string[32], szoveg[256], mehet = 1, x = 1, osszes;
	format(fajl, sizeof(fajl), "Config/hirdetesek.cfg");

	while(mehet)
	{
		format(string, sizeof(string), "hirdetes%d", x);

		if(!dini_Isset(fajl, string)) { osszes = x; mehet = 0; }
		x++;
	}

	if(osszes > 0)
	{
		hirdetes = 1 + random(osszes-1);
		format(string, sizeof(string), "hirdetes%d", hirdetes);
		szoveg = dini_Get(fajl, string);

		SendFormatMessageToAll(COLOR_GREEN,"(( Segнtsйg: {9ACD32AA}/jelentйs /help {009900FF}))"); <<error
	}
	//SetTimer("BandaInfo",10000,false);
	return 1;
}



Re: error 017: undefined symbol "SendFormatMessageToAll" - ]Rafaellos[ - 10.04.2014

SendClientMessageToAll?


Re: error 017: undefined symbol "SendFormatMessageToAll" - superrobot48 - 10.04.2014

Try
pawn Код:
SendClientMessageToAll(COLOR_GREEN, (( Segнtsйg: {9ACD32AA}/jelentйs /help {009900FF})));



Re: error 017: undefined symbol "SendFormatMessageToAll" - Slicebook - 10.04.2014

work.. thanks !


Re: error 017: undefined symbol "SendFormatMessageToAll" - Bingo - 10.04.2014

Uhm,

There's nothing like this SendFormatMessageToAll.
It's SendClientMessageToAll.


Re: error 017: undefined symbol "SendFormatMessageToAll" - Konstantinos - 10.04.2014

Quote:
Originally Posted by [vTc]Patroool
Посмотреть сообщение
Uhm,

There's nothing like this SendFormatMessageToAll.
It's SendClientMessageToAll.
There's a custom function that can be used in replacement of format + SendClientMessageToAll.

@superrobot48: You forgot the quotes around the text.

EDIT:

Here it is: http://forum.sa-mp.com/showpost.php?...90&postcount=5
There might be others too and using y_va is the best option I guess.


Re: error 017: undefined symbol "SendFormatMessageToAll" - Bingo - 10.04.2014

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
There's a custom function that can be used in replacement of format + SendClientMessageToAll.

@superrobot48: You forgot the quotes around the text.
Ahan, Anyway thanks.
I never known about this custom funcs.


Re: error 017: undefined symbol "SendFormatMessageToAll" - gekas - 10.04.2014

Quote:
Originally Posted by superrobot48
Посмотреть сообщение
Try
pawn Код:
SendClientMessageToAll(COLOR_GREEN, (( Segнtsйg: {9ACD32AA}/jelentйs /help {009900FF})));
SendFormatMessageToAll -> SendClientMessageToAll