24.12.2013, 22:23
Hello.
I'm trying to make a code where a player enters text, that will be showed on other player's screen for 6 seconds. But it's converting the inputtext to a integer, I know why it is making it a integer, but if I do
It doesn't compile.
Help is appreciated.
thanks.
I'm trying to make a code where a player enters text, that will be showed on other player's screen for 6 seconds. But it's converting the inputtext to a integer, I know why it is making it a integer, but if I do
pawn Код:
new text = inputtext;
Help is appreciated.

pawn Код:
if(dialogid == announce)
{
new string[25];
new text = strval(inputtext);
if(text > 25) return SendClientMessage(playerid,COLOR_RED, "Keep your text characters below 25.");
format(string,sizeof(string), "~g~%s",text);
GameTextForAll(string, 6000, 2);
return 1;
}