Sys_Get_Construction_Queue_Item_Upgrade_ID error... |
Submitted by Gideon on Tue, 2007-12-04 01:24.
SE:V MODs
From SE5_Script.pdf:
Sys_Get_Construction_Queue_Item_Upgrade_ID: long queue_id: long queue_item_id: long This function returns the facility id of a construction queue item (if this construction queue item is a CONSTRUCTION_ITEM_TYPE_UPGRADE_FACILITY). The queue_id is the ID of the construction queue. The queue_item_id is the ID of the construction queue item.
When compiled as:
queue_id: long queue_item_id: long queue_item_specific_id: long ... set queue_item_specific_id := Sys_Get_Construction_Queue_Item_Upgrade_ID(queue_id, queue_item_id) ...
Returns in the scriptparser:
==================================================== Errors ==================================================== Could not parse ... (line ####): Incorrect Parameter Type - string versus long. Could not parse ... (line ####): Could not parse ... (line ####): Bad Set Declaration
Triple checked this, and it seems to want a string where one of the longs is supposed to be. My guess would be where queue_item_id is.




Re: Sys_Get_Construction_Queue_Item_Upgrade_ID error...
Hey Gideon,
I had this type of error last week in my code. In 99% sure its not an error with the statement but a problems with extra if statements or extra endifs at some point prior to that section of code. I never rooted at the exact culprit. I had done extensive changes at work and brought the code home (dont have email, SE5, or log in ability for spaceempires5.com at work). So I had to take an old version and add in the changes piece meal. Only way I got around it. So I guess my suggestion is check for extra endif s or something.
-Unnamed
Unnamed Mod