I am still stuck on okey if you can believe it...

Started by , Fri 28/03/2008 23:29:07

Previous topic - Next topic

firestarrules

on they okey scripting, okey.visible yada yada,well,I completed all that.Ok so im going to the green arrow and I click on it and what?I get a parse error at okey.so I change okey to oKey.parse error.you guys probably think this is minor but I really need help,so please,I would enjoy a reply.



thanks!

TwinMoon

Wrong forum! Post this in the Beginners Technical Question.

I think  oKey.Visible   is what you need.

Yes, you need to be very precise, but then again programming is talking to a computer and computers only do what you tell them. They don't try to understand you.


Emerald

If I were you, I'd double-check exactly what you coded in.

You don't strike me as the extra-careful, meticulous type...

firestarrules

I have re checked it over and over.it says:



Okey_Interact
{
45 oKey.Visible - false;
46 player.AddInventory(iKey)
47 GiveScore (5)
{

Error (line 45):peo4 parse error at 'oKey'

ThreeOhFour

Could it have something to do with the fact that in one instance you have "Okey" and in another you have "oKey"?

Not much of a programmer, but this looks odd to me.

firestarrules

whoops sorry,i meant to capitalize okey. so it looks the same just with them both capitalized,and it still says parse error.

Akatosh

Replace the "-" with a "=" and you should be fine.

firestarrules


Akatosh

You're welcome. It's always the small things...

/EDIT: Oh, and you're probably lacking a ; at the end of line 46 and 47. ;)

firestarrules

thank you again.but what does'(' expected mean?

Akatosh

It means that the application expected a ( when there wasn't any. In this case, it means changing "GiveScore (5)" to "GiveScore(5);" - just remove the space sign.

You might want to consider proofreading in the future...  ;)

firestarrules

I also accidentaly erased something on the globalscript,something like:




397 if(!gpanel.visible) mouse.usedefualtgraphic...erased
398}
399
400 function ikey_Interact

error line 398 ')' expected

if i erase the }then its expected error at line 400?

Akatosh

You need a (). It's mouse.UseDefaultGraphic(); . Seriously, you might want to get somebody to introduce you to this whole thing first. These little icons below the avatars are there for a reason... look for somebody foolish enough to offer their services in terms of "AGS tutoring" (this icon: ) and PM them.

firestarrules

thank you so much again,im so sorry to bother u,but thank you so much.

MrColossal

Register for an account and post in the right forum or I will just lock your threads as soon as I see them.
"This must be a good time to live in, since Eric bothers to stay here at all"-CJ also: ACHTUNG FRANZ!

SMF spam blocked by CleanTalk