| 03-28-2007, 08:19 PM | #1 |
JASS:function Trig_test_Actions takes nothing returns nothing local string S=null local boolean B=false set S=GetLocalizedString(GetSaveBasicFilename()) set B=SaveGameExists(S+".w3z") call Text(S) if B==true then call Text("a save with this name already exist") else call Text("this name is not used already") endif endfunction //=========================================================================== function InitTrig_test takes nothing returns nothing set gg_trg_test = CreateTrigger( ) call TriggerRegisterGameSavedEventBJ( gg_trg_test ) call TriggerAddAction( gg_trg_test, function Trig_test_Actions ) endfunction i want to know who is the saver, i try this cause JASS:GetTriggeringPlayerBut GetSaveBasicFilename is for all players, that's a shame ... I had hope that would be null for the other players Anyway i dont know the correct path for a save game can you anwer me |
| 04-03-2007, 05:56 PM | #2 |
this function can help me for know who is saving ? JASS:native SyncSelections takes nothing returns nothing Or maybe like the function to know who is the host http://www.wc3campaigns.net/showthre...hlight=gethost |
| 04-03-2007, 06:01 PM | #3 |
I don't think you can save in multiplayer as in at all? |
| 04-03-2007, 07:11 PM | #4 |
you cant use it : JASS:native SaveGame takes string saveFileName returns nothing But you can save if you click on save. And this is so anyioning cause of lag ... |
| 04-10-2007, 05:15 PM | #5 |
Anyone has an idea ? ( The title of this topic is not correct, it would be now : " Who is saving the game ? " ) |
