Errors and Warnings doing the local chat system
#8

Well I fixed it, it was return that was in the bad position

Quote:

public OnPlayerText(playerid, text[])
{

new name[MAX_PLAYER_NAME], string[144], Float: pX, Float: pY, Float: pZ;
GetPlayerName(playerid, name, sizeof name);
format(string, sizeof(string), "%s diz: %s", name, text);
GetPlayerPos(playerid, pX, pY, pZ);
foreach(new i: Player)
{
if(IsPlayerInRangeOfPoint(i, 6.0, pX, pY, pZ))
{
SendClientMessage(i, branco , string);

}
return 0;
}
return 1;

New code, and It's working thanks a lot for the help O_x
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)