Help Me.
#1

Код:
//==============================================================================
// Gang Tag
//==============================================================================
	if(text[0])
	{
		new string[128];
		new gangid = 0;
		if(AccInfo[playerid][gang]) format(string, sizeof(string), "[ %s ] %s ( %d ): %s",GangInfo[gangid][GANG_NAME],GetPlayerName(playerid),playerid,text);
		else format(string, sizeof(string), "%s ( %d ) : %s",  GetPlayerName(playerid), playerid, text);
 		SendPlayerMessageToAll(GetPlayerColor(playerid), string);
 		return SendClientMessageToAll(GetPlayerColor(playerid), string);
	}
warning:
Quote:

D:\GTASAN~1\GAMEMO~1\SATDM_~1.PWN(2620) : warning 202: number of arguments does not match definition
D:\GTASAN~1\GAMEMO~1\SATDM_~1.PWN(2620) : warning 202: number of arguments does not match definition
D:\GTASAN~1\GAMEMO~1\SATDM_~1.PWN(2621) : warning 202: number of arguments does not match definition
D:\GTASAN~1\GAMEMO~1\SATDM_~1.PWN(2621) : warning 202: number of arguments does not match definition

Reply
#2

SendPlayerMessageToAll needs a playerid.
Reply
#3

Quote:
Originally Posted by MP2
Посмотреть сообщение
SendPlayerMessageToAll needs a playerid.
the SendPlayerMessageToAll already have a playerid.
Reply
#4

SendPlayerMessageToAll needs a playerid.

MP2 Right
Reply
#5

https://sampwiki.blast.hk/wiki/SendPlayerMessageToAll
Reply
#6

So:
pawn Код:
SendClientMessageToAll(GetPlayerColor(playerid), string);
Will be:
pawn Код:
SendClientMessageToAll(playerid, GetPlayerColor(playerid), string);
Reply
#7

solved by me . warning from the GetPlayerName XD
Reply
#8

No. There is no color. Look at the wiki.
Reply
#9

MP2, he has said GetPlayerName:
pawn Код:
format(string, sizeof(string), "%s ( %d ) : %s",  GetPlayerName(playerid), playerid, text);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)