Posts: 803
Threads: 138
Joined: Jul 2014
Reputation:
0
Alright so I've got a question. Since I have like 700 RemoveBuildingForPlayer each time I reset the server all players that stay online will crash since it will double those RemoveBuildingForPlayer (proven correct) now is there any way to avoid this?
Posts: 1,661
Threads: 47
Joined: May 2013
Reputation:
0
Maybe kick them when you reset the server? Not sure but I'm also pretty sure that GMXing doesn't call an array of functions, so your variables probably don't reset properly, that being said it's best to kick them all together to avoid this.
Posts: 4,759
Threads: 33
Joined: Dec 2013
Reputation:
0
This can be prevented with SVars.
Posts: 694
Threads: 2
Joined: Oct 2012
Reputation:
0
The thing is you can remove multiple buildings with one RemoveBuilding line, you could optimize your removes to be less while functioning the same, while players technically have those building removed while the client is up and running (don't quote me on that tho, I recall reading it somewhere written by one of Beta Testers) so you can put a check to see if current player has gone thru the function before, if not do it.
Also afaik PVars stay while GMXing too, there is no point using SVars.