Problem At public ShowStats ( easy :-? ) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem At public ShowStats ( easy :-? ) (
/showthread.php?tid=455450)
Problem At public ShowStats ( easy :-? ) -
Kapone21 - 01.08.2013
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);
Re: Problem At public ShowStats ( easy :-? ) -
Ada32 - 01.08.2013
%s = string.
%d = integer.