Syntax Error or Invalid Function Expression
#2

DEAD1 returns 1.
Why do you want to show this to the player?


Try it like this:
(Sorry, don't have time to test it.)

Код:
new hpString[3];
new hpTimeLeft[MAX_PLAYERS];

forward HospitalTimeLeft(playerid);
public HospitalTimeLeft(playerid)
{
	hpTimeLeft[playerid] = hpTimeLeft[playerid] - 1;	
	format(hpString,sizeof(hpString),"%d",hpTimeLeft[playerid]);
	GameTextForPlayer(playerid, hpString,1000, 4);
	return 1;
}

public RespawnHospital(playerid)
{
		SetSpawnInfo(playerid,GetPlayerTeam(playerid),GetPlayerSkin(playerid),322.197998,302.497985,999.148437,275.7301,0,0,0,0,0,0);
		GetGender(playerid);
		SetPlayerInterior(playerid, 5);
		SetTimerEx("DEAD1", 60000, false, "i", playerid);		
		
		hpTimeLeft[playerid] = 60; //60 sec
		SetTimerEx("HospitalTimeLeft", 1000, false, "i", playerid);
		
   		SpawnPlayer(playerid);
  		return 1;
}

public DEAD1(playerid)
{
		SetPlayerHealth(playerid,100);
		SetPlayerInterior(playerid,0);
		SetPlayerPos(playerid,1242.1780,328.2336,19.7555);
		SendClientMessage(playerid,WHITE,"* Pasveikai.");
 		return 1;
}
Reply


Messages In This Thread
Syntax Error or Invalid Function Expression - by LI0LIKAS - 22.01.2018, 15:45
Re: Syntax Error or Invalid Function Expression - by Rolux - 22.01.2018, 16:16
Re: Syntax Error or Invalid Function Expression - by LI0LIKAS - 22.01.2018, 16:43
Re: Syntax Error or Invalid Function Expression - by Rolux - 22.01.2018, 17:17
Re: Syntax Error or Invalid Function Expression - by LI0LIKAS - 22.01.2018, 17:30

Forum Jump:


Users browsing this thread: 2 Guest(s)