12.02.2018, 12:14
Quote:
This could be due to this:
PHP код:
|
The warning only occurs when you change someones FAD setting(firearmdangerous).
code:
PHP код:
new file[64], SearchOnPlayerMDC[50];
format(SearchOnPlayerMDC, sizeof(SearchOnPlayerMDC), "%s", MDC[playerid][MDCPlayerSelected]);
format(file, sizeof(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;