08.02.2017, 00:44
hey guys i have this close report command but i want to give a bigger reason when i close a report... and i want to show the reason in 2 lines if the reason is to big the cmd is this but isn't working ... just 1 line after 200 letters it stop and is only 1 line.
any idea why.. ?
Код HTML:
CMD:declinereport(playerid, params[])
{
new splayer[25], giveplayerid, reason[32], string2[200];
if(gLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "Tu nu esti logat si nu poti sa folosesti aceasta comanda!");
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_ERROR, "Nu ai gradul necesar ca sa folosesti aceasta comanda!");
if(PlayerInfo[playerid][pTreedSecurity] == 0) return SendClientMessage(playerid, COLOR_ERROR, "Nu ai gradul necesar ca sa folosesti aceasta comanda!");
if(sscanf(params,"s[25]s[32]",splayer, reason)) return SendClientMessage(playerid, COLOR_SYN, "Sintaxa:{FFFFFF} (/d)ecline®eport <Player ID/Name> <reason>");
{
if(GetPlayers(splayer) == INVALID_PLAYER_ID) return InvalidPlayer(playerid);
else if(GetPlayers(splayer) == 1000) return ToManyResults(playerid);
else if(GetPlayers(splayer) == 1001) return ShowResults(playerid, splayer);
else giveplayerid = GetPlayers(splayer);
if(HasReported[giveplayerid] == 0) return SendClientMessage(playerid, COLOR_SYN2, "Acel jucator nu a trimis un report.");
HasReported[giveplayerid] = 0;
format(PlayerInfo[giveplayerid][pReport],164," ");
format(gString, sizeof(gString), "Ai respins reportul jucatorului %s, motiv: %s", GetName(giveplayerid), reason);
SendClientMessage(playerid, COLOR_NOB, gString);
if(strlen(gString) > 200)
{
strmid(string2, gString, 110, 256);
strdel(gString, 110, 256);
format(gString,200,"{00CC00}%s ...",gString);
ABroadCast(COLOR_NEWS2, gString, 1);
format(string2,200,"{00CC00}... %s",string2);
ABroadCast(COLOR_NEWS2, string2, 1);
}
format(gString, sizeof(gString), "Adminul %s ti-a respins reportul, motiv: %s", GetName(playerid), reason);
if(strlen(gString) > 200)
{
strmid(string2, gString, 110, 256);
strdel(gString, 110, 256);
format(gString,200,"{00CC00}%s ...",gString);
ABroadCast(COLOR_NEWS2, gString, 1);
format(string2,200,"{00CC00}... %s",string2);
ABroadCast(COLOR_NEWS2, string2, 1);
}
Reports--;
UpdateStaffTextdraw();
}
return 1;
}