Posts: 716
Threads: 92
Joined: May 2018
So i made a phone textdraw to show if phone is on/off:
My question is, i wanna make it if is ON, color should be ~g~, otherwise ~r~ (as above).
How?
I use: Player[playerid][PhoneStatus] = 0/1;
Thanks.
Posts: 716
Threads: 92
Joined: May 2018
No that's not what i want. About the stock, i already do it.
Posts: 716
Threads: 92
Joined: May 2018
Because i don't have only "phone status" in that textdraw. I have other info too. I'm sure there is a way, i found it long time ago.
Something like this.
pawn Код:
PlayerData[targetid][pGender] == 2) ? ("Female") : ("Male"),
Posts: 357
Threads: 6
Joined: Feb 2018
Quote:
Originally Posted by Undef1ned
PHP код:
Player[playerid][PhoneStatus] ? ("ON") : ("OFF")
|
maybe like this
Код:
new status[30];
status = Player[playerid][PhoneStatus] ? ("~w~ON") : ("~w~OFF");
Posts: 211
Threads: 0
Joined: Aug 2018
Reputation:
0
He knows how to add the colors. Also why create a chain?