wtf is wrong with that code :2
#5

pawn Код:
GetPlayerHealth,GetPlayerSkin,GetPlayerMoney,GetPlayerTeam);
Those functions need parameters to work:
https://sampwiki.blast.hk/wiki/GetPlayerHealth
https://sampwiki.blast.hk/wiki/GetPlayerMoney
https://sampwiki.blast.hk/wiki/GetPlayerTeam
https://sampwiki.blast.hk/wiki/GetPlayerSkin

so you code would look like:
pawn Код:
new Float:xxx;
GetPlayerHealth(playerid,xxx);
   format(string, sizeof(string),"%s Statistic's~n~NBTDM~n~Health:%f~n~Skin:%d~n~Money:%d~n~Class:%d",name,xxx,GetPlayerSkin(playerid),GetPlayerMoney(playerid),GetPlayerTeam(playerid));
Note that health is a float value, not decimal.


Edit:
@up.. you guys were faster ~.~
I miss the old SMF feature which said that somebody has posted before you....

@Gustavob, you made a mistake with GetPlayer[strike]Healt[/strike] -> Health*!
Reply


Messages In This Thread
wtf is wrong with that code :2 - by vassilis - 30.10.2011, 17:06
Re: wtf is wrong with that code :2 - by park4bmx - 30.10.2011, 17:10
Re: wtf is wrong with that code :2 - by Gustavob - 30.10.2011, 17:11
Re: wtf is wrong with that code :2 - by vassilis - 30.10.2011, 17:12
Re: wtf is wrong with that code :2 - by Gamer_Z - 30.10.2011, 17:12
Re: wtf is wrong with that code :2 - by vassilis - 30.10.2011, 17:14
Re: wtf is wrong with that code :2 - by Gustavob - 30.10.2011, 17:18

Forum Jump:


Users browsing this thread: 1 Guest(s)