Textdraw string not changing
#5

Just an intermediary note:
Код:
new nameic[MAX_PLAYER_NAME + 1]; //Account for null terminator
GetPlayerName(playerid, nameic, sizeof(nameic));

new string[9 + MAX_PLAYER_NAME + 1]; //Because 'Welcome, ' is 9 characters long
format(string, sizeof(string), "Welcome, %s", nameic);
Of course, if you change the string, you need to change its length as well or it will only show parts of it.
Reply


Messages In This Thread
Textdraw string not changing - by TokicMajstor - 10.02.2019, 15:31
Re: Textdraw string not changing - by TokicMajstor - 11.02.2019, 16:50
Re: Textdraw string not changing - by Florin48 - 11.02.2019, 17:04
Re: Textdraw string not changing - by Florin48 - 11.02.2019, 17:07
Re: Textdraw string not changing - by Freaksken - 11.02.2019, 18:09
Re: Textdraw string not changing - by TokicMajstor - 11.02.2019, 19:13

Forum Jump:


Users browsing this thread: 1 Guest(s)