Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Resolved: showani params (https://forums.graalonline.com/forums/showthread.php?t=61488)

ChibiChibiLuc 09-29-2005 08:46 PM

Resolved: showani params
 
When a gani script shown by a showani uses parameters, they either aren't passed or can't be accessed.
I tested this on both v3 and v4.

The script I used:
PHP Code:

GANI ganiparamtest.gani
function onPlayerEnters() {
  
showimg(30,params[0],x,y);


PHP Code:

WEAPON Gani Params
function onWeaponFired() {
  
showani(400,player.x,player.y,0,"ganiparamtest","block.png");


If this were working properly, it would show block.png on the player when the weapon is fired.
Unless I screwed up the syntax, that's not the problem.
The GS1 equivalents of these scripts both work perfectly on v2.
Nothing happens on v3 or v4, even if it's GS1 or GS2.

Admins 09-29-2005 09:06 PM

Also add some "echo" call.
Better use "if (playerenters)" otherwise the function parameters will overwrite params[]


All times are GMT +2. The time now is 01:33 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.