Thread: Gani Problems
View Single Post
  #2  
Old 10-12-2006, 03:03 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by xXziroXx View Post

Script:
PHP Code:
player.attr[19] = { {2040}, {510} };
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[1SPC "MP:" SPC this.mana[0] @ "/" this.mana[1], 3y);
  
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"param1param2etc..}; 
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
__________________
Reply With Quote