Chat problem - Need Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Chat problem - Need Help (
/showthread.php?tid=73030)
Chat problem - Need Help -
Dol - 12.04.2009
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!
Re: Chat problem - Need Help -
illay - 12.04.2009
return 1;
=>
return 0;
Re: Chat problem - Need Help -
illay - 12.04.2009
public OnPlayerText(playerid, text[])
{
new
#define MaxString 255
String[MaxString];
format(String,sizeof(String),"Says: %s",text);
SendPlayerMessageToAll(playerid,String);
return 0;
}
Re: Chat problem - Need Help -
Dol - 12.04.2009
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;
}
Re: Chat problem - Need Help -
illay - 12.04.2009
...
Re: Chat problem - Need Help -
illay - 12.04.2009
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;
}
Re: Chat problem - Need Help -
Dol - 12.04.2009
Thanks I'm going to try it in a second.
Re: Chat problem - Need Help -
Dol - 12.04.2009
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!
Re: Chat problem - Need Help -
SpiderPork - 12.04.2009
Change the return 1; to return 0;