Team damage / 2, How to do this?
#7

What does this part do:

SetPlayerArmour(playerid,(Armour>0)?(Armour)0.0) );

I don't understand the

(Armour>0)?(Armour) : (0,0) part..

Does it say is Armour more than 0, then armour = Armour, else armour = 0.0?
Reply


Messages In This Thread
Team damage / 2, How to do this? - by AnthonyTimmers - 15.02.2014, 20:00
Re: Team damage / 2, How to do this? - by redneckvideogamer - 15.02.2014, 20:14
Re: Team damage / 2, How to do this? - by AnthonyTimmers - 15.02.2014, 20:23
Re: Team damage / 2, How to do this? - by redneckvideogamer - 15.02.2014, 20:36
Re: Team damage / 2, How to do this? - by AnthonyTimmers - 16.02.2014, 00:37
Re: Team damage / 2, How to do this? - by CyNiC - 16.02.2014, 00:52
Re: Team damage / 2, How to do this? - by AnthonyTimmers - 16.02.2014, 09:06
Re: Team damage / 2, How to do this? - by CyNiC - 16.02.2014, 12:24

Forum Jump:


Users browsing this thread: 1 Guest(s)