1 string W_Name(float weaponid);
2 float(float index) weapon_translateindextoflag;
7 void(string s, float check_dangerous) ServerConsoleEcho =
15 ch = substring(s, 0, 1);
16 if(ch != "\"" && ch != "\r" && ch != "\n")
18 s = substring(s, 1, strlen(s) - 1);
28 void(string s, float check_dangerous) GameLogEcho =
33 if(cvar("sv_eventlog_files"))
38 matches = cvar("sv_eventlog_files_counter") + 1;
39 cvar_set("sv_eventlog_files_counter", ftos(matches));
42 fn = strcat(substring("00000000", 0, 8 - strlen(fn)), fn);
43 fn = strcat(cvar_string("sv_eventlog_files_nameprefix"), fn, cvar_string("sv_eventlog_files_namesuffix"));
44 logfile = fopen(fn, FILE_APPEND);
45 dprint(strcat("\n\n\n\n**********\nlogfile id: ", ftos(logfile), "\n\n\n"));
48 fputs(logfile, strcat(s, "\n"));
50 if(cvar("sv_eventlog_console"))
52 ServerConsoleEcho(s, check_dangerous);
59 // will be opened later
64 if(logfile_open && logfile >= 0)
71 float math_mod(float a, float b)
73 return a - (floor(a / b) * b);
76 string linewrap(string s, float l)
83 t = strcat(t, substring(s, 0, l), "\n");
84 s = substring(s, l+1, strlen(s));