09.06.2012, 21:33
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
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;
}



