28.11.2009, 17:21
Код:
if(strfind(text, "(", true) != -1) { new length = strlen(text); while ((idx < length) && (text[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = text[idx]; idx++; } result[idx - offset] = EOS; GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%s : (( %s ))", sendername, result); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); printf("%s", string); return 0; }
name_surname : (( (text ))