08.02.2017, 11:30
There is a stock - SendSplitMessage. It splits your message in 2 lines.
And you can use it like that:
And if you use it like
/closereport 0 Your message was deleted by an admin because of etc1 etc2 etc3 etc4 etc5 etc6
Your message will look like
Ai respins reportul jucatorului Player, motiv: Your message was deleted..
..by an admin because of etc1 etc2 etc3 etc4 etc5 etc6
Pe pawno.ro nu vrei sa intrebi? E mai usor pe .com?
Код:
stock SendSplitMessage(playerid, color, const final[]) { new buffer[EX_SPLITLENGTH+5]; new len = strlen(final); if(len>EX_SPLITLENGTH) { new times = (len/EX_SPLITLENGTH); for(new i = 0; i < times+1; i++) { strdel(buffer, 0, EX_SPLITLENGTH+5); if(len-(i*EX_SPLITLENGTH)>EX_SPLITLENGTH) { strmid(buffer, final, EX_SPLITLENGTH*i, EX_SPLITLENGTH*(i+1)); format(buffer, sizeof(buffer), "%s ...", buffer); } else { strmid(buffer, final, EX_SPLITLENGTH*i, len); } SendClientMessage(playerid, color, buffer); } } else { SendClientMessage(playerid, color, final); } return 1; }
Код:
format(gString, sizeof(gString), "Ai respins reportul jucatorului %s, motiv: %s", GetName(giveplayerid), reason); SendSplitMessage(playerid, COLOR_NOB, gString);
/closereport 0 Your message was deleted by an admin because of etc1 etc2 etc3 etc4 etc5 etc6
Your message will look like
Ai respins reportul jucatorului Player, motiv: Your message was deleted..
..by an admin because of etc1 etc2 etc3 etc4 etc5 etc6
Pe pawno.ro nu vrei sa intrebi? E mai usor pe .com?