[HELP] OnPlayerText
#1

hey, i have found 1 bug.... send two message. i have changed the return 1; in return 0; ... but nothing else don't work

and i have changed in return 1; but don't send the message

example:

Bluec0de: Text example
Bluec0de: Text example

all onplayertext

Code:
public OnPlayerText(playerid, text[]) {
	// 
    new
        iText;
    while (text[iText++])
    {
        if ('A' <= text[iText] <= 'Z') text[iText] |= 0x20;
    }
    // 
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if((GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid)) && (playerid !=i))
            {
                new
		            s[128];
                format(s, sizeof(s), "%s: "#EMB_COL_WHITE"%s", name(playerid), text);
                SendClientMessage(i, GetPlayerColor(playerid), s);
            }
        }
    }
    return 0;
}
Reply


Messages In This Thread
[HELP] OnPlayerText - by TheBluec0de - 09.06.2012, 21:33
Re: [HELP] OnPlayerText - by TheBluec0de - 09.06.2012, 22:00
Re : [HELP] OnPlayerText - by ricardo178 - 09.06.2012, 22:07
Re: [HELP] OnPlayerText - by Elysian` - 09.06.2012, 22:13
Re: [HELP] OnPlayerText - by TheBluec0de - 09.06.2012, 22:18
Re: [HELP] OnPlayerText - by Elysian` - 09.06.2012, 22:30
Re: [HELP] OnPlayerText - by JhnzRep - 09.06.2012, 22:30
Re: [HELP] OnPlayerText - by Elysian` - 09.06.2012, 22:32
Re: [HELP] OnPlayerText - by JhnzRep - 09.06.2012, 22:34
Re: [HELP] OnPlayerText - by Jefff - 09.06.2012, 22:50
Re: [HELP] OnPlayerText - by ReneG - 09.06.2012, 23:27
Re: [HELP] OnPlayerText - by TheBluec0de - 10.06.2012, 01:42

Forum Jump:


Users browsing this thread: 2 Guest(s)