24.02.2010, 23:02
pawn Код:
public OnPlayerText(playerid, text[])
{
if(text[0] == '(')
{
new string[128];
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s:(( %s ))", sendername, text);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
return 0;
}
It gives me this: Name_Name( ( hello! ))
Instead it should be like this: Name_Name( hello! ))
Wtf, where that extra "(" comes from?