[AYUDA]Esta Bien??? - 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: [AYUDA]Esta Bien??? (
/showthread.php?tid=336612)
[AYUDA]Esta Bien??? -
Treyfus - 23.04.2012
Bueno Como sabran YO no he aportado nada a esta comunidad Ni a otra.
Razon:Aun sigo aprendiendo.
y Bueno he intentado aser una funcion y quiero que ustedes que saben me digan si esta BIEN.
pawn Код:
stock GivePlayerHealth(playerid, Vida[])
{
new Float:health;
GetPlayerHealth(playerid, health);
new Operacion[3];
if(Vida[0] >= 0 && Vida[0] <= 9)
{
Operacion[2] = floatstr(Vida);
health += Operacion[2];
}
else if(Vida[0] == '-')
{
split( Vida, Operacion, '-' );
Operacion[2] = floatstr(Operacion[1]);
health -= Operacion[2];
}
else return 1;
return SetPlayerHealth(playerid, health);
}
Si esta Mal Corriganmen que yo quiero aprender!!!
Grasias y Saludos...!!!
Respuesta: [AYUDA]Esta Bien??? -
Zume - 23.04.2012
mmm... їque quieres hacer?...