Temperature
#3

Quote:
Originally Posted by Sreyas
Посмотреть сообщение
hmm you should show us more bit of your code buddy.
Код:
new Float:Temperature[MAX_PLAYERS];
OnPlayerConnect & OnPlayerDisconnect:
Код:
Temperature[playerid] = 36.6;
Timer one second:
Код:
new temperature[128];
format(temperature,sizeof(temperature),"Temperature:%0.1f",Temperature[playerid]);
PlayerTextDrawSetString(playerid, HudTD[playerid][2], temperature);

if(Weather == 8 || Weather == 16 || Weather == 20)
	{
	    new i = random(27);
	    if(i == 6)
	    {
			 Temperature[playerid] -= 0.1;
			 
			 if(Temperature[playerid] == 31) SM(playerid,0x00FF00FF,"{B9BCBD}TEST");
			 else if(Temperature[playerid] == 24)
			 {
			    SM(playerid,0x00FF00FF,"{B9BCBD}TEST");
			    Temperature[playerid] = 36.6;
			    SetPlayerHealth(playerid, 0);
			 }
	    }
	}
REPEAT:TEXTDRAW show correctly temperature but problem is that message not display when temperature is 31.0 and 24.0.
Reply


Messages In This Thread
Temperature - by iulicxd - 31.07.2016, 14:03
Re: Temperature - by SyS - 31.07.2016, 14:05
Re: Temperature - by iulicxd - 31.07.2016, 14:09
Re: Temperature - by SyS - 31.07.2016, 14:18
Re: Temperature - by iulicxd - 31.07.2016, 15:23
Re: Temperature - by SyS - 31.07.2016, 15:29

Forum Jump:


Users browsing this thread: 2 Guest(s)