strval inputtext
#5

Quote:
Originally Posted by Shaneisace
View Post
Just remove strval() around the "inputtext" that'll keep it as a string

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);
Also use "strlen" for the character count.

Code:
if(strlen(inputtext) > 128) return SendClientMessage(playerid, -1, "{f03333}Tekstas per ilgas!");
alright, thank you
Reply


Messages In This Thread
strval inputtext - by Kevinas100 - 21.03.2019, 20:22
Re: strval inputtext - by Sasino97 - 21.03.2019, 20:28
Re: strval inputtext - by Kevinas100 - 21.03.2019, 20:42
Re: strval inputtext - by Shaneisace - 21.03.2019, 20:52
Re: strval inputtext - by Kevinas100 - 21.03.2019, 21:16

Forum Jump:


Users browsing this thread: 1 Guest(s)