13.01.2015, 17:27
I try to create chat multi lines for RP server, but still don't work and got bug when /do, /me
there is my code anyone can help me pls ! thanks you
there is my code anyone can help me pls ! thanks you
PHP код:
CMD:do(playerid, params)
{
if(strlen(params) < 100)
{
new string[128];
format(string, sizeof(string), "* %s (( %s ))", params, GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
new str[128], string[128];
strmid(str,(params),100,200);
strins((params), "-...", 100, 1);
strdel((params), 101, 200);
format(string, sizeof(string), "* %s (( %s ))", params, GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
format(str, sizeof(str), "* %s (( %s ))", params, GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, str, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}