• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

problem with raw data

Status
Not open for further replies.

Kazeon

Hosted Project: EC
Level 34
Joined
Oct 12, 2011
Messages
3,449
I have a code like this
  • call CreateDestructableZ('udg_BE_LibEmptyIcon', GetLocationX(udg_BE_Point[1]), GetLocationY(udg_BE_Point[1]), udg_BE_ConfMinCamHeight+(udg_BE_PlayerNumb*udg_BE_ConfCamSpacing), 270, 1, 1)
where BE_LibEmptyIcon is a string variable with value = B000
but when I tried to save it, there is an error with message "Expected a valid argument list". Anyone knows how to fix it?
 
Why don't you make the BE_LibEmptyIcon an integer variable? Then you can just set it like this:
  • Custom script: set udg_BE_LibEmptyIcon = 'B000'
The single quotes ' ' around B000 indicates that it is a rawcode (and it will be converted to an actual integer).

Then you would use it directly in the CreateDestructableZ, without the single quotes ' ':
  • Custom script: call CreateDestructableZ(udg_BE_LibEmptyIcon, GetLocationX(udg_BE_Point[1]), GetLocationY(udg_BE_Point[1]), udg_BE_ConfMinCamHeight+(udg_BE_PlayerNumb*udg_BE_ConfCamSpacing), 270, 1, 1)
Unless you really need udg_BE_LibEmptyIcon to be a string. You really shouldn't need to have it as a string.
 
Status
Not open for further replies.
Top