|
Senior Member
Join Date: Sep 2011
Location: Lithuania
|

11-11-2011
, 14:52
Re: Last plugin is Almost done.
|
#6
|
Quote:
Originally Posted by Napoleon_be
tools > identor
|
Or just see that you made too much spaces.
PHP Code:
public StartRecord(id) { new DemoName[128], hostname[64], mapname[64]; get_cvar_string("hostname", hostname,63); get_mapname(mapname,63); replace_all( DemoName, 127, ":", "_" ); replace_all( DemoName, 127, ".", "_" ); replace_all( DemoName, 127, "*", "_" ); replace_all( DemoName, 127, "/", "_" ); replace_all( DemoName, 127, "|", "_" ); replace_all( DemoName, 127, "\", "_" ); replace_all( DemoName, 127, "?", "_" ); replace_all( DemoName, 127, ">", "_" ); replace_all( DemoName, 127, "<", "_" ); replace_all( DemoName, 127, " ", "_" ); format( DemoName, 127, "%s %s", mapname, hostname); formatex(DemoName, charsmax(DemoName), "%s.dem", DemoName) client_cmd(id, "stop; record ^"%s^"", DemoName) client_print( id, print_chat, "Ehll - We are now recording in your ag folder"); client_print( id, print_chat, "Ehll - Filename: ^"%s^"", DemoName); }
-->
PHP Code:
public StartRecord(id) { new DemoName[128], hostname[64], mapname[64]; get_cvar_string("hostname", hostname,63); get_mapname(mapname,63); replace_all( DemoName, 127, ":", "_" ); replace_all( DemoName, 127, ".", "_" ); replace_all( DemoName, 127, "*", "_" ); replace_all( DemoName, 127, "/", "_" ); replace_all( DemoName, 127, "|", "_" ); replace_all( DemoName, 127, "\", "_" ); replace_all( DemoName, 127, "?", "_" ); replace_all( DemoName, 127, ">", "_" ); replace_all( DemoName, 127, "<", "_" ); replace_all( DemoName, 127, " ", "_" ); format( DemoName, 127, "%s %s", mapname, hostname); formatex(DemoName, charsmax(DemoName), "%s.dem", DemoName) client_cmd(id, "stop; record ^"%s^"", DemoName) client_print( id, print_chat, "Ehll - We are now recording in your ag folder"); client_print( id, print_chat, "Ehll - Filename: ^"%s^"", DemoName); }
__________________
Last edited by Evaldas.Grigas; 11-11-2011 at 14:53.
|
|