Quote:
Originally Posted by xXziroXx
Script:
PHP Code:
player.attr[19] = { {20, 40}, {5, 10} }; player.attr[20] = "ml_hud.gani";
Gani:
PHP Code:
SCRIPT function onCreated() { this.health = { player.attr[19][0][0], player.attr[19][0][1] }; this.mana = { player.attr[19][1][0], player.attr[19][1][1] };
setTimer(.05); }
function onTimeOut() { showimg(1, "@verdana@b@" @ this.account SPC "HP:" SPC this.health[0] @ "/" @ this.health[1] SPC "MP:" SPC this.mana[0] @ "/" @ this.mana[1], x + 3, y); changeimgzoom(1, .5); } SCRIPTEND
That should show the text:
HP: 20/40 MP: 5/10
next to all players.. but it dont, it only show for the current player, the text:
HP: 0/0 MP: 0/0
is shown next to all other players.
Ive also tried to pass the params with same attribute as the gani, but then the gani wouldnt even work at all.
PHP Code:
player.attr[20] = { "ml_hud.gani", param1, param2, etc..};
I tried to use both variants WITH and WITHOUT .gani, it didnt work -at all- without it.
Any suggestions?
|
hmm,
HTML Code:
this.health = { player.attr[19][0][0], player.attr[19][0][1] };
this.mana = { player.attr[19][1][0], player.attr[19][1][1] };
HTML Code:
player.attr[19] = { {20, 40}, {5, 10} };
-------------------------
you are trying to call it like if attr19 was:
HTML Code:
player.attr[19] = { { {20}, {40} }, { {5}, {10} } };
correct me if I am wrong
