Raised This Month: $ Target: $400
 0% 

Last plugin is Almost done.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 11-11-2011 , 14:52   Re: Last plugin is Almost done.
Reply With Quote #6

Quote:
Originally Posted by Napoleon_be View Post
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_allDemoName127":""_" );
    
replace_allDemoName127".""_" );
    
replace_allDemoName127"*""_" );
    
replace_allDemoName127"/""_" );
    
replace_allDemoName127"|""_" );
    
replace_allDemoName127"\", "_" );
    replace_all( DemoName, 127, "
?", "_" );
    replace_all( DemoName, 127, "
>", "_" );
    replace_all( DemoName, 127, "
<", "_" );
    replace_all( DemoName, 127, " ", "
_" );
    
    format( DemoName, 127, "
%%s", mapname, hostname);
    formatex(DemoName, charsmax(DemoName), "
%s.dem", DemoName)
    
    client_cmd(id, "
stoprecord ^"%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_allDemoName127":""_" );
    
replace_allDemoName127".""_" );
    
replace_allDemoName127"*""_" );
    
replace_allDemoName127"/""_" );
    
replace_allDemoName127"|""_" );
    
replace_allDemoName127"\", "_" );
    replace_all( DemoName, 127, "
?", "_" );
    replace_all( DemoName, 127, "
>", "_" );
    replace_all( DemoName, 127, "
<", "_" );
    replace_all( DemoName, 127, " ", "
_" );
    
    format( DemoName, 127, "
%%s", mapname, hostname);
    formatex(DemoName, charsmax(DemoName), "
%s.dem", DemoName)
    
    client_cmd(id, "
stoprecord ^"%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);
    

__________________
Please enter this website everyday: http://forums.alliedmods.net/showthread.php?t=169067

Last edited by Evaldas.Grigas; 11-11-2011 at 14:53.
Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode