Que condiciуn utilizar [Ayuda]
#6

Quote:
Originally Posted by _Zume
Посмотреть сообщение
no, para eso has un else if con los valores que tu creas convenientes, por ejemplo, como veras ahi primero comprueba si no tiene un objeto puesto en el slot 9 (esto para que no haga flood poniйndole el objeto) y luego comprueba si tiene mas armadura de 0.

Has lo mismo sуlo que invertido, si tiene el slot en uso y tiene menos 1
muchas gracias

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
Aqui te va amigo:
pawn Код:
new Float:armour;
GetPlayerArmour(playerid, armour);
if(!IsPlayerAttachedObjectSlotUsed(playerid, 9) && armour > 0) SetPlayerAttachedObject(playerid, 9, 19142, 1, 0.098, 0.039);
else if(IsPlayerAttachedObjectSlotUsed(playerid, 9)) RemovePlayerAttachedObject(playerid, 9);
gracias men solucionado con los if + rept
Reply


Messages In This Thread
Que condiciуn utilizar [Ayuda] - by Zodiaco - 07.01.2015, 01:09
Respuesta: Que condiciуn utilizar [Ayuda] - by Zume - 07.01.2015, 01:18
Respuesta: Que condiciуn utilizar [Ayuda] - by Zodiaco - 07.01.2015, 01:22
Respuesta: Que condiciуn utilizar [Ayuda] - by Zume - 07.01.2015, 01:41
Re: Que condiciуn utilizar [Ayuda] - by SickAttack - 07.01.2015, 01:46
Respuesta: Re: Que condiciуn utilizar [Ayuda] - by Zodiaco - 07.01.2015, 01:54

Forum Jump:


Users browsing this thread: 1 Guest(s)