error 017: undefined symbol "SendFormatMessageToAll"
#1

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;
}
Reply
#2

SendClientMessageToAll?
Reply
#3

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

work.. thanks !
Reply
#5

Uhm,

There's nothing like this SendFormatMessageToAll.
It's SendClientMessageToAll.
Reply
#6

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.
Reply
#7

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.
Reply
#8

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


Forum Jump:


Users browsing this thread: 1 Guest(s)