Error only 1
#1

How to get this work?

new text1[20];
if(PlayerData[playerid][Haircut] < 0) { text1 =PlayerData[playerid][Haircut]; }
else { text1 = "None";
Reply
#2

Any one?!?
Reply
#3

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.
Reply
#4

Works but when try changing the "None" using a command doesnt change
Reply
#5

Hmm, how we could fix that?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)