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 > Trigger (GUI)/ AI editor Tutorials
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 09-23-2008, 11:38 PM   #16
Plater
User
 
Plater's Avatar
 
Join Date: Sep 2008
Posts: 7

Plater has little to show at this moment (0)

Default

I have a very nasty bug with the Show Menu Trigger.

Trigger - Run Alter onEvent <gen> (checking conditions)

This does not work. And when i try to fix it, all the triggers colapse. Can you help me please?
__________________

Plater is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 12-07-2008, 03:36 AM   #17
midiway
Pro-carnivorous
 
midiway's Avatar
 
Join Date: Nov 2006
Posts: 217

Submissions (1)

midiway will become famous soon enough (43)midiway will become famous soon enough (43)

Default

Collapse JASS:
function CreateMultiboardforPlayer takes integer cols, integer rows, string title, player p returns multiboard
    if( GetLocalPlayer() == p ) then
    set bj_lastCreatedMultiboard = CreateMultiboard()
    call MultiboardSetRowCount(bj_lastCreatedMultiboard, rows)
    call MultiboardSetColumnCount(bj_lastCreatedMultiboard, cols)
    call MultiboardSetTitleText(bj_lastCreatedMultiboard, title)
    call MultiboardDisplayforPlayer(p, bj_lastCreatedMultiboard, true)
    endif
    return bj_lastCreatedMultiboard
endfunction

Your function causes desyncs since its creating a multiboard only for the local player. Solution: create the board for all players and then just show it to a single player.
midiway 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 02:12 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