View Single Post
  #2  
Old 11-01-2008, 01:10 AM
Programmer Programmer is offline
Coder
Programmer's Avatar
Join Date: Jan 2008
Location: -78.464422, 106.837328
Posts: 449
Programmer has a spectacular aura aboutProgrammer has a spectacular aura about
Send a message via AIM to Programmer Send a message via MSN to Programmer Send a message via Yahoo to Programmer
Quote:
Originally Posted by Deas_Voice View Post
what are the params of actionprojectile2()?



yeah i know x and y is params1 and params2'
but the others?

for example i cant do :
PHP Code:
setShootParams(this.xthis.y,  2); 
and when on the function
PHP Code:
function onActionProjecTile2(xxyyid)
{
  if (
id == 2)
  {
    
putLeaps4xxyy ); 
  } 
no leaps.

thanks.
Why not just do echo(params); and determine what causes it? In your above example, your 'id' is actually relative to this.x in setShootParams. Basically, the first two are predefined. The next after those are the shoot parameters you specified. Try replacing id in your if statement to params[4] and see if that works.
__________________
- Iᴀɴ Zɪᴍᴍᴇʀᴍᴀɴ
Reply With Quote