wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Tutorials > JASS/AI scripts tutorials
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 01-30-2009, 12:22 PM   #61
Hans_Maulwurf
root bloody root
 
Hans_Maulwurf's Avatar
 
Join Date: Mar 2007
Posts: 117

Hans_Maulwurf will become famous soon enough (52)Hans_Maulwurf will become famous soon enough (52)

Send a message via ICQ to Hans_Maulwurf
Default

Will this stop working after a few thousand handles?
Collapse JASS:
    local integer id = H2I(GetTriggerUnit())
    local unitdata foobar = unitdata( id - 1048580 )

Since I noticed the Integer may not be too high. If yes, is this a problem and how to work around?
Hans_Maulwurf is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 01-30-2009, 01:15 PM   #62
akolyt0r
In Flames
 
akolyt0r's Avatar
 
Join Date: Jan 2006
Posts: 1,154

Submissions (3)

akolyt0r has a spectacular aura about (120)

Default

since structs are arrays they have a maximum of 8190, but you can extend that limit by adding [10000] (example) behind the structs declaration
Collapse JASS:
struct unitdata[10000] //example
//...
endstruct
however hight values will make it a lil slower ...

but maybe you should use Table here ??
it doesnt have such limitations..
__________________

Last edited by akolyt0r : 01-30-2009 at 01:17 PM.
akolyt0r is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 06:39 AM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services