admin include problem
#10

Код:
stock PlayerInfo(playerid, pAdmin)
{
	new tmp;
	new string[128],playername[MAX_PLAYER_NAME];
	GetPlayerName(playerid,playername,sizeof(playername));
	format( string, sizeof(string),PATH,playername);
	INI_Int("Admin", tmp);
	if((IsPlayerConnected(playerid)) && (tmp >= 1)) {
            return true;
	} else { 
            return false;
        }
}
This should work. I have removed an extra semi-colon at the INI_Int line, and removed the tmp != 0, since the tmp >=1 takes care of it already.
Reply


Messages In This Thread
admin include problem - by Armageddonz - 09.06.2015, 07:59
Re: admin include problem - by SoFahim - 09.06.2015, 08:10
Re: admin include problem - by Armageddonz - 09.06.2015, 08:37
Re: admin include problem - by JaydenJason - 09.06.2015, 08:55
Re: admin include problem - by SoFahim - 09.06.2015, 08:55
Re: admin include problem - by Armageddonz - 09.06.2015, 09:07
Re: admin include problem - by Armageddonz - 09.06.2015, 09:12
Re: admin include problem - by mamorunl - 09.06.2015, 09:18
Re: admin include problem - by Armageddonz - 09.06.2015, 09:47
Re: admin include problem - by mamorunl - 09.06.2015, 09:54

Forum Jump:


Users browsing this thread: 3 Guest(s)