Warning with ProxDetector
#3

^^ Right, You have mistake in GetPlayerName.
This is right code :
Код:
forward PlayerPlayerActionMessage(playerid,targetid,Float: radius,message[]);
public PlayerPlayerActionMessage(playerid,targetid,Float: radius,message[])
{
	new ppamstring[128], name[MAX_PLAYER_NAME], tname[MAX_PLAYER_NAME];
	GetPlayerName(playerid, name, MAX_PLAYER_NAME);
	GetPlayerName(targetid, tname, MAX_PLAYER_NAME);
	format(ppamstring,sizeof(ppamstring),"%s %s %s", name, message, tname);//Line 2716
	ProxDetector(20.0, playerid, ppamstring, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
	return 1;
}
Reply


Messages In This Thread
Warning with ProxDetector - by NinjahZ - 12.03.2015, 23:36
Re: Warning with ProxDetector - by SickAttack - 12.03.2015, 23:47
Re: Warning with ProxDetector - by X337 - 13.03.2015, 01:31

Forum Jump:


Users browsing this thread: 1 Guest(s)