how to format a string to string.txt - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how to format a string to string.txt (
/showthread.php?tid=422367)
how to format a string to string.txt -
akki - 13.03.2013
i want to get the player name and format the string as name.txt
please help
Re: how to format a string to string.txt -
Tika Spic - 13.03.2013
Код:
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..
Re: how to format a string to string.txt -
akki - 13.03.2013
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