Jump to content

A simple Script problem


Linky1

Recommended Posts

Hi all,

 

I have just got into scripting and made a test script which doesn't seem to work, this is the script:

 

 

scriptname LincolnsSpell

 

short updateCount

 

Begin ScriptEffectStart

RemoveAllItems

End

 

Begin ScriptEffectUpdate

set updateCount to updateCount + 1

End

 

Begin ScriptEffectFinish

Message Spell is finished. ScriptEffectUpdate was run % .Of times, updateCount

End

 

 

 

When I try to save it it says:

 

Script 'LincolnsSpell', line 14:

Message time must be an interger

Compiled script not saved!

 

Please could someone explain how to fix this?

 

Thanks,

 

Linky1

Link to comment
Share on other sites

I think % .Of should have been % .0f... note the difference between the letter Oh and the number zero. ;)

 

I assume that the missing quotation marks were due to the forum software rendering them that way.

Link to comment
Share on other sites

I think % .Of should have been % .0f... note the difference between the letter Oh and the number zero. ;)

 

I assume that the missing quotation marks were due to the forum software rendering them that way.

 

 

 

This worked, Thanks man! Kudos

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...