Thread: sword power?
View Single Post
  #2  
Old 03-05-2007, 01:43 AM
godofwarares godofwarares is offline
Webmaster
godofwarares's Avatar
Join Date: Dec 2006
Location: Florida
Posts: 552
godofwarares is on a distinguished road
Send a message via ICQ to godofwarares Send a message via AIM to godofwarares Send a message via MSN to godofwarares Send a message via Yahoo to godofwarares
Well first, Your syntax is wrong (You used = in the If operation instead of ==) -- Try this:

PHP Code:
if (playertouchsme && player.swordpower == 2)
{
hide;

This is hybridized though, I suggest you do:

PHP Code:
function onPlayerTouchsMe()
{
     if (
player.swordpower == 2)
     {
          
hide();
     }

__________________
What signature? I see no signature?

Last edited by godofwarares; 03-05-2007 at 01:44 AM.. Reason: Forgot to point out the error
Reply With Quote