GetConsoleVarAs "stream_distance" Server Crash
#1

So I wanted the get the stream_distance set in server.cfg, which is a float value.
Since there is no GetConsoleVarAsFloat function, I've tried the approach found in this thread: click.
Код:
stock Float:GetConsoleVarAsFloat(var[]) {
     new string[30];
     GetConsoleVarAsString(var, string, sizeof(string)); //Crash happens here
     return floatstr(string);
}
But whenever I execute GetConsoleVarAsFloat("stream_distance"); the server crashes immediately.
GetConsoleVarAsInt and GetConsoleVarAsBool don't return the correct value obviously.
I have this line in my server.cfg file:
Код:
stream_distance 300.0
Does anyone know a solution?
Reply


Messages In This Thread
GetConsoleVarAs "stream_distance" Server Crash - by Freaksken - 29.07.2016, 16:23
Re: GetConsoleVarAs "stream_distance" Server Crash - by Misiur - 29.07.2016, 19:26
Re: GetConsoleVarAs "stream_distance" Server Crash - by Freaksken - 29.07.2016, 20:14
Re: GetConsoleVarAs "stream_distance" Server Crash - by Konstantinos - 29.07.2016, 21:10
Re: GetConsoleVarAs "stream_distance" Server Crash - by Freaksken - 29.07.2016, 21:36
Re: GetConsoleVarAs "stream_distance" Server Crash - by Misiur - 29.07.2016, 21:39

Forum Jump:


Users browsing this thread: 1 Guest(s)