Help, i have a error
#1

I need this command does not add more life

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == City)
{
GameTextForPlayer(playerid, " Estas En Tierra Robada ", 6000,1);
GivePlayerWeapon(playerid, 46, 1);
SetPlayerHealth(playerid, 94);
SetPlayerPos(playerid,-1492.5255,2509.5999,601.1897);
SetPlayerVirtualWorld(playerid, -1);
SetTimerEx("FuncionVida",1000,true,"i",playerid);
}
return 1;
}


forward FuncionVida();
public FuncionVida()
{
for(new i;i<MAX_PLAYERS;i++)
{
new funcionvidaa[i] = SetTimerEx("FuncionVida",1000,true,"i",playerid);
if(IsPlayerConnected(i)) // Verifica que el jugador estй conectado y logeado
{
GetPlayerHealth(i, health); //Estableciendo el valor flotante health con GetPlayerHealth
if(health > 0) //Si su vida es mayor a 0...
SetPlayerHealth(i, health+5); //Da +5 de vida al jugado
else
if(health > 95)
KillTimer(funcionvidaa[i])
}

}
return 1;
}

The error in this line

new funcionvidaa[i] = SetTimerEx("FuncionVida",1000,true,"i",playerid);

HELP !!!!
Reply


Messages In This Thread
Help, i have a error - by MandaleMecha - 23.05.2018, 14:28
Re: Help, i have a error - by Kraeror - 23.05.2018, 14:37
Re: Help, i have a error - by Lokii - 23.05.2018, 14:48

Forum Jump:


Users browsing this thread: 1 Guest(s)