Can i do it like this?
#10

Take a closer look

pawn Код:
PlayerInfo[playerid][pMaskuse] == 0 ? ("* %s takes out a cellphone.") : ("* Stranger takes out a cellphone.")
If mask is equal 0, then string formatted will be "* %s takes out a cellphone.", but if the player has a mask on, then it will be "* Stranger takes out a cellphone.". This is called ternary operator
Reply


Messages In This Thread
Can i do it like this? - by Don_Cage - 18.03.2013, 20:23
Re: Can i do it like this? - by Jstylezzz - 18.03.2013, 20:24
Re: Can i do it like this? - by Misiur - 18.03.2013, 20:26
Re: Can i do it like this? - by Don_Cage - 18.03.2013, 20:28
Re: Can i do it like this? - by Misiur - 18.03.2013, 20:34
Re: Can i do it like this? - by Don_Cage - 19.03.2013, 17:03
Re: Can i do it like this? - by Don_Cage - 19.03.2013, 17:13
Re: Can i do it like this? - by Misiur - 19.03.2013, 17:20
Re: Can i do it like this? - by Don_Cage - 19.03.2013, 17:27
Re: Can i do it like this? - by Misiur - 19.03.2013, 17:32

Forum Jump:


Users browsing this thread: 4 Guest(s)