How could i create that?
#2

pawn Код:
// Dialog id..
if (response)
{
    if (isnull(inputtext)) return 1;
    // If the player did not enter anything, it will just stop here without calling what's next.
   
    new str[38];
    GetPlayerName(playerid, str, sizeof (str));
    format(str, sizeof (str), "invites/%s.txt", str);
    // Formatting the string to invites/playername.txt
    new File:file = fopen(str, io_write);
    // Opening the file which is at "invites/playername.txt"
    format(str, sizeof (str), "%s", inputtext);
    // Formatting the string to what the player entered.
    fwrite(file, str);
    // Writing inside the file the name OF THE PLAYER THAT INVITED THEM.
    fclose(file);
    // Closing the file.
}
Reply


Messages In This Thread
How could i create that? - by Glossy42O - 28.10.2014, 15:52
Re: How could i create that? - by Stinged - 28.10.2014, 16:21
Re: How could i create that? - by Glossy42O - 28.10.2014, 16:23
Re: How could i create that? - by Stinged - 28.10.2014, 16:26
Re: How could i create that? - by Glossy42O - 28.10.2014, 16:27
Re: How could i create that? - by Glossy42O - 28.10.2014, 17:35
Re: How could i create that? - by Rudy_ - 28.10.2014, 17:38
Re: How could i create that? - by Glossy42O - 28.10.2014, 17:55
Re: How could i create that? - by Glossy42O - 29.10.2014, 03:57
Re: How could i create that? - by Threshold - 29.10.2014, 04:43

Forum Jump:


Users browsing this thread: 3 Guest(s)