SA-MP Forums Archive
їEste error por quй? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: їEste error por quй? (/showthread.php?tid=547310)



їEste error por quй? - lComandante - 22.11.2014

Tag mismatch:

Код:
forward VehiculoVida(playerid);
public VehiculoVida(playerid)
{

	if(YaSabe[playerid] == true)
	{
	return 0;
	}
    new Float:health;
    new veh;
    veh = GetPlayerVehicleID(playerid);
    GetVehicleHealth(veh, health);
    if(health < 300.0)
    {
   	TextoJugador(playerid, "~r~El vehiculo esta estropeado\nLlame un mecanico", 6000, 3);
    }
    YaSabe[playerid] = true;
    return 1;
}
En esta lнnea: if(YaSabe[playerid] == true)

Gracias de antemano.


Respuesta: їEste error por quй? - aoEXE - 22.11.2014

porque la variable no es tipo bool.

Es por ejemplo creas una variable tipo integer (entero) y cuando la usas o comparas lo haces como bool(true/false) etc igual con los otros


Re: їEste error por quй? - lComandante - 22.11.2014

Toda la razуn, me olvidй de hacerlo con bool, que idiota, enserio, gracias x_x