Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Converting ROM snipper to FUSS

Converting ROM snipper to FUSS

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1  2  3 

Posted by Mopop   (115 posts)  Bio
Date Reply #30 on Sat 17 Dec 2005 12:03 AM (UTC)
Message
Well I got the error to go away.

act_obj.c:3343: warning: suggest parentheses around && within ||

Now what the heck does that mean and Ill be happy ;-)
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #31 on Sat 17 Dec 2005 12:07 AM (UTC)
Message
Can you paste that code block?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Mopop   (115 posts)  Bio
Date Reply #32 on Sat 17 Dec 2005 12:24 AM (UTC)
Message
/* Do the character know how to handle a gun ? */
for(number = 0 ; number < shots ; number = number + 1)
{
if( can_use_skill( ch, number_percent( ), gsn_clip ) && IS_OBJ_STAT(gun,GUN_CLIP)
||( can_use_skill( ch, number_percent( ), gsn_energy ) && IS_OBJ_STAT(gun,GUN_ENERGY))
||( can_use_skill( ch, number_percent( ), gsn_shell ) && IS_OBJ_STAT(gun,GUN_SHELL))
||( can_use_skill( ch, number_percent( ), gsn_fuel ) && IS_OBJ_STAT(gun,GUN_FUEL))
||( can_use_skill( ch, number_percent( ), gsn_rocket ) && IS_OBJ_STAT(gun,GUN_ROCKET)))
{

Its this same damn block x_x
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #33 on Sat 17 Dec 2005 12:25 AM (UTC)
Message
Change the line to:
if(( can_use_skill( ch, number_percent( ), gsn_clip ) && IS_OBJ_STAT(gun,GUN_CLIP))

I think.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Mopop   (115 posts)  Bio
Date Reply #34 on Sat 17 Dec 2005 12:28 AM (UTC)
Message
heh didnt work

     ||( can_use_skill( ch, number_percent( ), gsn_shell ) && IS_OBJ_STAT(gun,GUN_SHELL))
is the line, line 3343
Top

Posted by Gatewaysysop2   USA  (146 posts)  Bio
Date Reply #35 on Wed 21 Dec 2005 04:33 PM (UTC)
Message
Might be a tad more informative if you would actually explain 'how' it didn't work, not just "heh, didn't work". That doesn't help anyone to solve your problem.

For starters, are you still getting the same error message as before? Can you post the code you are using now and what the current error message associated with it is, line numbers and all?

Maybe with that info people can be of more help?


"The world of men is dreaming, it has gone mad in its sleep, and a snake is strangling it, but it can't wake up." -D.H. Lawrence
Top

Posted by Mopop   (115 posts)  Bio
Date Reply #36 on Wed 21 Dec 2005 07:20 PM (UTC)
Message
Yeah I was replying to Zeno, Its over anways.
Top

Posted by Gatewaysysop2   USA  (146 posts)  Bio
Date Reply #37 on Thu 22 Dec 2005 10:41 AM (UTC)
Message
Meh. Looked like a forum response to me, but what do I know?

At any rate, maybe you can share what the problem was in case others have issues with the same snippet? Seems only fair.


"The world of men is dreaming, it has gone mad in its sleep, and a snake is strangling it, but it can't wake up." -D.H. Lawrence
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


119,585 views.

This is page 3, subject is 3 pages long:  [Previous page]  1  2  3 

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.