Hello
I am new to SourceMod, and I want to create an array based on the number of clients connected to the server and send it through SteamWorks POST.
But I simply can't figure it out. Can anyone assist me in this?
First, I tried the following, but each line basically replaces the one before, so I would only receive "VAL3".
PHP Code:
SteamWorks_SetHTTPRequestGetOrPostParameter(req, "data[]", "VAL1");
SteamWorks_SetHTTPRequestGetOrPostParameter(req, "data[]", "VAL2");
SteamWorks_SetHTTPRequestGetOrPostParameter(req, "data[]", "VAL3");
Then I tried the following, but get error "error 048: array (s do not match":
PHP Code:
char data[3][64];
data[0] = "VAL1";
data[1] = "VAL1";
data[2] = "VAL1";
SteamWorks_SetHTTPRequestGetOrPostParameter(req, "data", data);