Bug with publics
#8

Код:
public IzlazakT()
{
new string[128];
     for(new i = 0; i < MAX_PLAYERS; i++)
        {
		if(PlayerInfo[i][pJailed] == 2)
	    {
            if(PlayerInfo[i][pJailTime] > 0)
	    	{
                PlayerInfo[i][pJailTime] -= 1;
	    	}
 	        if(PlayerInfo[i][pJailTime] == 0)
		    {
                PlayerInfo[i][pJailTime] = 0;
                SetPlayerInterior(i, 0);
		        PlayerInfo[i][pJailed] = 0;
                SetPlayerPos(i, 1767.88, -1613.29, 13.52);
                return 1;
            }
		}
		if(PlayerInfo[i][pJailed] == 1)
	    {
            if(PlayerInfo[i][pJailTime] > 0)
	    	{
                PlayerInfo[i][pJailTime] -= 1;
	    	}
 	        if(PlayerInfo[i][pJailTime] == 0)
		    {
                PlayerInfo[i][pJailTime] = 0;
                SetPlayerInterior(i, 0);
		        PlayerInfo[i][pJailed] = 0;
		        ClearCrime(i);
		        SendClientMessage(i, COLOR_WHITE,"Pusteni ste iz zatvora.");
				SendClientMessage(i, COLOR_WHITE,"Sledeci put razmislite prije nego sto pocinite zlocin.");
				format(string, sizeof(string), "~g~Pusteni ste iz zatvora");
                SetPlayerPos(i, 1767.88, -1613.29, 13.52);
                return 1;
            }
		}
	}
return 1;
}
public is ok when i use cmd
Код:
    if(strcmp(cmd, "/js", true) == 0)
	{
	IzlazakT();
	return 1;
	}
then take 1seconds of jailed players
Reply


Messages In This Thread
Bug with publics - by CloW - 31.08.2013, 19:13
Re: Bug with publics - by CloW - 01.09.2013, 06:07
Re: Bug with publics - by park4bmx - 01.09.2013, 06:21
Re: Bug with publics - by CloW - 01.09.2013, 06:34
Re: Bug with publics - by park4bmx - 01.09.2013, 06:36
Re: Bug with publics - by CloW - 01.09.2013, 06:38
Re: Bug with publics - by park4bmx - 01.09.2013, 06:41
Re: Bug with publics - by CloW - 01.09.2013, 06:44
Re: Bug with publics - by park4bmx - 01.09.2013, 06:50
Re: Bug with publics - by CloW - 01.09.2013, 06:50

Forum Jump:


Users browsing this thread: 1 Guest(s)