Solved Rust++ C# Datastore

tarynkelley

Retired Staff
Retired Staff
Trusted Member
Nov 14, 2015
575
178
28
Parts Unknown
Hi,

Iam trying to modify Rust++ to add a value to the DataStore when a moderator or admin uses godmode.

by adding to the GodModeCommand.cs at the correct section:

DataStore GOMD = new DataStore();
GOMD.Add("Gomd", pl.SteamID, "true");

But this command does not have any effect at all. The Table gets never created in the DataStore.

Why this?
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,790
113
At your house.
github.com
Hi,

Iam trying to modify Rust++ to add a value to the DataStore when a moderator or admin uses godmode.

by adding to the GodModeCommand.cs at the correct section:

DataStore GOMD = new DataStore();
GOMD.Add("Gomd", pl.SteamID, "true");

But this command does not have any effect at all. The Table gets never created in the DataStore.

Why this?
It doesn't have effect since you are instancing a new DS, but it already exists.

DataStore.GetInstance() [OR SOMETHING LIKE THAT].Add(......
 
  • Like
Reactions: tarynkelley