21.03.2019, 20:52
Just remove strval() around the "inputtext" that'll keep it as a string
Strval converts a string into a integer value.
Also use "strlen" for the character count.
Strval converts a string into a integer value.
Code:
format(zin,sizeof(zin),"{ff6699}[{ff99cc}SKELBIMAS ] %s{ff6699}{ff99cc}: %s" ,GET_NAME(playerid), inputtext); SendClientMessageToAll(0xffcc00FF,zin); format(zin,sizeof(zin),"{ff6699} %s", inputtext);
Code:
if(strlen(inputtext) > 128) return SendClientMessage(playerid, -1, "{f03333}Tekstas per ilgas!");