sscanf warning
#3

Quote:
Originally Posted by iKarim
Посмотреть сообщение
This could be due to this:

PHP код:
sccanf(input"iii"var1var2); 
I specified 3 integers but I actually passed only 2 as arguments.
Thanks for your response. The thing is, i dont use sscanf like that at the part where the warning occured.
The warning only occurs when you change someones FAD setting(firearmdangerous).

code:
PHP код:
new file[64], SearchOnPlayerMDC[50];
        
format(SearchOnPlayerMDCsizeof(SearchOnPlayerMDC), "%s"MDC[playerid][MDCPlayerSelected]);
        
format(filesizeof(file), "Accounts/%s.ini"SearchOnPlayerMDC);
        
MDCfad[playerid] = INI_Int(file"FAD");
        if(
MDCfad[playerid]==1)
        {
            
TextDrawHideForPlayer(playerid,PoliceComputerSPTD23);
            
TextDrawHideForPlayer(playerid,PoliceComputerSPTD24);
            
TextDrawHideForPlayer(playerid,PoliceComputerSPTD25);
            
MDCad[playerid] = 0;
        }
        else if(
MDCfad[playerid]==0)
        {
             
TextDrawShowForPlayer(playerid,PoliceComputerSPTD23);
            
TextDrawShowForPlayer(playerid,PoliceComputerSPTD24);
            
TextDrawShowForPlayer(playerid,PoliceComputerSPTD25);
           
MDCfad[playerid] = 1;
        }
        
INI_IntSet(file,"FAD"MDCfad[playerid]);
        
PlayerPlaySound(playerid,6400,0.0,0.0,0.0);
        
printf("%s has changed %s's FAD setting."GetName(playerid), MDC[playerid][MDCPlayerSelected]);
        return 
1
Is it related to changing FAD or is it elsewhere?
Reply


Messages In This Thread
sscanf warning - by jasperschellekens - 12.02.2018, 12:02
Re: sscanf warning - by iKarim - 12.02.2018, 12:09
Re: sscanf warning - by jasperschellekens - 12.02.2018, 12:14
Re: sscanf warning - by iKarim - 12.02.2018, 12:37
Re: sscanf warning - by PepsiCola23 - 12.02.2018, 12:57
Re: sscanf warning - by Mugala - 12.02.2018, 13:00
Re: sscanf warning - by jasperschellekens - 12.02.2018, 13:58
Re: sscanf warning - by Sew_Sumi - 12.02.2018, 14:34

Forum Jump:


Users browsing this thread: 1 Guest(s)