04.12.2011, 09:40
Heey all,
How can i make a stock thats detect if variable is 1 or 0 and changes a text?
Explain:
Why i need this?
Because i want to make this for my clothes system. Like a command /myclothes.
I hope you know what i mean.
For myself this is a hard code to:P
Thanks Admigo
How can i make a stock thats detect if variable is 1 or 0 and changes a text?
Explain:
Код:
new clothes1[MAX_PLAYERS]=0;//clothes id 1 stock hasclothes1(variable)//detects variable id 0 or 1?? { static variable; switch(clothes1) { case 0: strcat(variable, "has no clothes1");//if clothes1[playerid]=0 then the text is has no clothes case 1: strcat(variable, "has clothes1");//if clothes1[playerid]=1 then the is has clothes } return variable; }
Because i want to make this for my clothes system. Like a command /myclothes.
I hope you know what i mean.
For myself this is a hard code to:P
Thanks Admigo