![]() |
Gani Problems
Ive been trying different methods of passing along params / information to ganis.. without much success I am afraid, so now I seek help from you guys.
Script: PHP Code:
Gani: PHP Code:
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:
Any suggestions? |
Quote:
hmm,:) HTML Code:
this.health = { player.attr[19][0][0], player.attr[19][0][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} } }; |
wait, I saw it was wrong because of "attr[19]" my bad :P
you could try to set it like to PHP Code:
and you could try showtext instead of showimg BTW; sorry for double post |
Doesnt mather if you use showtext or showimg, only showimg works serversided to show text (yes, I know ganis are clientsided).
And Ive already tried doing that Chompy, and im suprised no one is able to help me.. |
Quote:
|
*bumps* Anyone?
|
You tried to use echo to see what player.attr[19] contains?
|
Quote:
|
It's very simple to fix..
use: player.attr[20] = { "ml_hud.gani", param1, param2, etc..}; And do this: PHP Code:
|
Ok, me and Contiga tried to get it to work, without any luck.
He tried to do a player.testvar, but then it went entirely the same for all players. It doesnt work to send params with player.attr ganis, wich is kind of lame. Shouldnt this work?: PHP Code:
PHP Code:
|
attr[] can only hold a string, not an array, contrary to the popular belief.
On Zodiac, we have to use a second attr[] in the format of "maxhp hp maxmp mp" and then tokenize it. |
Quote:
A) Get Graal / RC to work on my friends Linux computer. B) Get him to trade back to Windows C) Get back home :rolleyes: |
The internal type of attr[] are strings, but you can assign arrays to it and if you assign it back to a normal variable it will be an array again.
|
All times are GMT +2. The time now is 02:39 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.