Posts: 115
Threads: 25
Joined: Dec 2007
Reputation:
0
How to get this work?
new text1[20];
if(PlayerData[playerid][Haircut] < 0) { text1 =PlayerData[playerid][Haircut]; }
else { text1 = "None";
Posts: 372
Threads: 37
Joined: Jul 2007
Reputation:
0
if(!strlen(PlayerData[playerid][Haircut])) return format(PlayerData[playerid][Haircut], 20, text1);
else return format(text1, 20, "None");
if theirs more in the command or whatever it is, Don't use returns and use { } to close statements but continue.
Posts: 136
Threads: 32
Joined: Feb 2007
Reputation:
0
Works but when try changing the "None" using a command doesnt change
Posts: 115
Threads: 25
Joined: Dec 2007
Reputation:
0
Hmm, how we could fix that?