About inputtext
#4

You can't assign a string in this manner in Pawn. For all you know, someone inputs "MyVeryLongTag". This is obviously longer than 10 characters. Then what?

Quote:
Originally Posted by DavidBilla
Посмотреть сообщение
pawn Код:
format(FactionTag[GetPlayerFactionID(playerid)],sizeof(FactionTag[GetPlayerFactionID(playerid)]),"%s",inputtext);
Don't use format to copy strings, use strcat or strcpy.
Reply


Messages In This Thread
About inputtext - by Metroplex - 04.11.2014, 09:04
Re: About inputtext - by DavidBilla - 04.11.2014, 09:19
Re: About inputtext - by Metroplex - 04.11.2014, 09:22
Re: About inputtext - by Vince - 04.11.2014, 09:23
Re: About inputtext - by Runn3R - 04.11.2014, 11:26

Forum Jump:


Users browsing this thread: 2 Guest(s)