Why isn't this working?
#1

I'm getting the SendClientMessage... That part is working. But the fwrite(openedfile, str); part won't work. I open the file and there is nothing written there.

PHP код:
    if(dialogid == DIALOG_BUGREPORT)
    {
        if(
response)
        {
            
SendClientMessage(playeridSCMCOLOR"Thank you! Your bug report has been saved for our development team to see.");
            
            new 
name[MAX_PLAYER_NAME], str[280];
            
GetPlayerName(playeridnamesizeof(name));
                
            new 
File:openedfile fopen("feedback.txt"io_append);
                
                
                
            
format(strsizeof(str), "Player Name: %s\n\n"name);
                
            
fwrite(openedfilestr);
            
            return 
1;
                
        }
    } 
Reply


Messages In This Thread
Why isn't this working? - by aKnoxx - 27.12.2018, 21:13
Re: Why isn't this working? - by Jefff - 27.12.2018, 21:16
Re: Why isn't this working? - by Logic_ - 27.12.2018, 21:26
Re: Why isn't this working? - by aKnoxx - 27.12.2018, 21:35
Re: Why isn't this working? - by aKnoxx - 27.12.2018, 21:39
Re: Why isn't this working? - by Jefff - 27.12.2018, 21:59

Forum Jump:


Users browsing this thread: 1 Guest(s)