samp Chat probleme
#1

hello guys i have a big probleme in my server the probleme is the chat is bugged i mean no one can talk another player and if they type someting it dosen't show in chat plz help
Reply
#2

Show us what's in the OnPlayerText callbal.
Reply
#3

Quote:
Originally Posted by Dr.Einstein
Посмотреть сообщение
Show us what's in the OnPlayerText callbal.
there is nothing in public OnPlayerText

public OnPlayerText(playerid, text[])
{
return 1;
}
Reply
#4

Replace it with


Quote:

public OnPlayerText(playerid, text[])
{
new pText[144];
format(pText, sizeof (pText), "(%d) %s", playerid, text);
SendPlayerMessageToAll(playerid, pText);
return 0; // ignore the default text and send the custom one
}

https://sampwiki.blast.hk/wiki/OnPlayerText
Reply
#5

didn't work same probleme
Reply
#6

try this

Код:
public OnPlayerText(playerid, text[])
{
	
    if(PlayerInfo[playerid][Level] >= 0) {
    new String[256];
    format(String, 256, "[%d]: %s", playerid, text);
    SendPlayerMessageToAll(playerid,String);
    return 0;// return 0 !!!! otherwise you get a double chat message
    }
    return 1;
}
Reply
#7

Quote:
Originally Posted by ScripteRNaBEEL
Посмотреть сообщение
try this

Код:
public OnPlayerText(playerid, text[])
{
	
    if(PlayerInfo[playerid][Level] >= 0) {
    new String[256];
    format(String, 256, "[%d]: %s", playerid, text);
    SendPlayerMessageToAll(playerid,String);
    return 0;// return 0 !!!! otherwise you get a double chat message
    }
    return 1;
}
Dosen't Work Plz Help
Reply
#8

Try this:

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[400];
    format(string, sizeof(string), "{FFFFFF}%d: %s",playerid,text);
    ProxDetector(90.0, playerid, string,COLOR_YELLOWGREEN,COLOR_YELLOWGREEN,COLOR_YELLOWGREEN,COLOR_YELLOWGREEN,COLOR_YELLOWGREEN);
    }
    return 1;
}
Reply
#9

Guys i think that this probleme is in my adminscript cuz ive deleted this scripts and runned the server and the chat looks ok
ive tried to search onPlayer text but i didn't found it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)