Duplicate Text!
#1

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[128];
    format(string, sizeof(string), "%s[%d]: {FFFFFF}%s", GetName(playerid), playerid, text);
    SendClientMessageToAll(COLOR_WHITE, string);
    return 1;
}
If I type something it will do:
Windows32[0]: Hi
Windows32: Hi.
Reply
#2

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[128];
    format(string, sizeof(string), "%s[%d]: {FFFFFF}%s", GetName(playerid), playerid, text);
    SendClientMessageToAll(COLOR_WHITE, string);
    return 0;
}
Change.
Reply
#3

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[128];
    format(string, sizeof(string), "%s[%d]: {FFFFFF}%s", GetName(playerid), playerid, text);
    SendClientMessageToAll(COLOR_WHITE, string);
    return 0;
}
You need return 0.
Reply
#4

just change return 1 to return 0 at end
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)