Problem At public ShowStats ( easy :-? )
#1

Ok , well i want to make someting like
if player have [pFumator] == 1 to show [ YES]
but dont working
for example if is [pFumator] == 1 appear : 68 if == 0 appear 89


here's the code
Код:
		
new smtext[20];
if(PlayerInfo[targetid][pFumator] == 1) { smtext = "Yes"; }
else if(PlayerInfo[targetid][pFumator] == 0) { smtext = "No"; }
and the line from stats
Код:
		format(coordsstring, sizeof(coordsstring), "{6600FF}>> {FFFFFF}Urm.Level:[$%d] Respect:[%d/%d] Casa:[%d] Biz:[%d] Int:[%d] SMOKER:[%d] Alcoholic:[%d]",costlevel,exp,expamount,housekey,bizkey,intir,smtext,Alcoholic);
Reply
#2

Код:
SMOKER:[%s]
%s = string.
%d = integer.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)