Detaljan opis problema: problem je sto sam napravio textdraw tekst za box i sad me zanima kako kad tekst dodje do kraja ekrana znaci da nemoze ici dalje(ali kod mene trenuno moze), da se prebaci u novi red ispod? Nadam se da ste me ukapirali imam neku provjeru za tekst i ne znam kako da to sve spojim 😄
Dio skripte:
stock SendXMessage(playerid, const text[])
{
for(new line; line < 15; line++)
{
TextDrawShowForPlayer(playerid, XMsg);//show the lines
}
for(new line; line < 15; line++)
{
TextDrawHideForAll(XMsg);//hide the line
if(line < 14)
{
XMsgStr = XMsgStr[line+1];//Message going up ^
TextDrawSetString(XMsg, XMsgStr);
}
}
format(XMsgStr, 128, "%s",text);//Message !
TextDrawSetString(XMsg, XMsgStr);//Start fron Line 9
for(new line; line < 15; line++) // goes up
{
TextDrawShowForAll(XMsg);//TextDraw show for player
}
return 1;
} imam i ovu komandu koja salje tekst u box CMD:abox(playerid,params[]) {
#pragma unused params
new string,name;
if(PlayerInfo >= 1)
if(isnull(params)) return SendClientMessage(playerid, red,"Koristi: /abox ");
SendClientMessage(playerid,0x20B2AAFF,"Poruka poslana!");
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s",params);
SendXMessage(playerid,string);
return 1;
} a ovo je ta neka provjera if(strlen(inputtext) > 40) strins("~n~", inputtext, 40); //ako je string veci od 40 stavice na plolje 40 string "~n~"Neke slike/video za lakse dobivanje pomoci(neobavezno): http://prnt.sc/ce1xcd
