Chat problem - Need Help
#1

When I type: Hello

it goes like this:

Fraiyne: Hello
Fraiyne says: Hello

Both on the same time, how can I fix it so when you type it will only do

Fraiyne says: Hello

I've checked the realchat function but it's still the same...

Help!
Reply
#2

return 1;
=>
return 0;
Reply
#3

public OnPlayerText(playerid, text[])
{
new
#define MaxString 255
String[MaxString];
format(String,sizeof(String),"Says: %s",text);
SendPlayerMessageToAll(playerid,String);
return 0;
}

Reply
#4

This is the code of the realchat ''says'' function:

Код:
	}
	if (realchat)
	{
	  if(gPlayerLogged[playerid] == 0)
	  {
	    return 0;
   	}
   	if(!IsPlayerInAnyVehicle(playerid) || IsABike(GetPlayerVehicleID(playerid)))
   	{
			format(string, sizeof(string), "%s says: %s", GetPlayerNameEx(playerid), text);
			ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
			TalkLog(string);
	   }
	}
	return 1;
}
Reply
#5

...
Reply
#6

pawn Код:
}
    if (realchat)
    {
      if(gPlayerLogged[playerid] == 0)
      {
        //Do Nothing
        return 0;
    }
    else if(!IsPlayerInAnyVehicle(playerid) || IsABike(GetPlayerVehicleID(playerid)))
    {
            format(string, sizeof(string), "%s says: %s", GetPlayerNameEx(playerid), text);
            ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            TalkLog(string);
       }
    }
    return 1;
}
Reply
#7

Thanks I'm going to try it in a second.
Reply
#8

Shameless bump but yea, it's still the same when I type: ''Hello''

I see:

Fraiyne: Hello (Global)
Fraiyne says: Hello

AT THE SAME TIME!

I want them to use /ooc to talk in Global, not just type.

HELP!

Reply
#9

Change the return 1; to return 0;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)