I just wanted to make a easy way to store a clients auth string into a multidimensional char array.
PHP Code:
char g_ClientAuthId[MAXPLAYERS + 1][20];
public void OnClientPutInServer(int client)
{
/* char auth[20];
GetClientAuthId(client, AuthId_SteamID64, auth, 20);
g_ClientAuthId[client] = auth; */
GetClientAuthId(client, AuthId_SteamID64, g_ClientAuthId[client], sizeof(g_ClientAuthId[client]));
}
The code commented out works, but the other code throws this error:
Code:
error 001: expected token: "]", but found "-identifier-"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 189: too many error messages on one line