how to format a string to string.txt
#1

i want to get the player name and format the string as name.txt
please help
Reply
#2

Код:
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
new string[24];
format(string,sizeof(string),"%s.txt",playername);
Maybe this will help... I'm not sure if I understood your question..
Reply
#3

Quote:
Originally Posted by Tika Spic
Посмотреть сообщение
Код:
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
new string[24];
format(string,sizeof(string),"%s.txt",playername);
Maybe this will help... I'm not sure if I understood your question..
yup you got my question and thanks a lot
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)