I want to make the "DEAD1" timer appear on screen, but I don't know why I get this error. Maybe you can you help me?
Code:
gamemodes\SAMG.pwn(670) : error 076: syntax error in the expression, or invalid function call
Code:
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);
new string[5];
format(string, sizeof(string), "%d", DEAD1);
GameTextForPlayer(playerid, string, 1200, 4);
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;
}