AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Last plugin is Almost done. (https://forums.alliedmods.net/showthread.php?t=170669)

vamppa 10-27-2011 14:48

Last plugin is Almost done.
 
removed

vamppa 10-27-2011 14:50

Re: Last plugin is Almost done.
 
What is good about this plugin is that it does both auto record and take a screenshot with the necessary information and HD saving while being the smallest plugin out there so far.

reinert 10-27-2011 15:47

Re: Last plugin is Almost done.
 
You are replacing symbols in DemoName even it's just created and it's empty.

vamppa 11-11-2011 12:52

Re: Last plugin is Almost done.
 
thANKS, sorted.
what about the line 14 Warning 217: loose indentation?

Napoleon_be 11-11-2011 13:09

Re: Last plugin is Almost done.
 
tools > identor

Evaldas.Grigas 11-11-2011 14:52

Re: Last plugin is Almost done.
 
Quote:

Originally Posted by Napoleon_be (Post 1594688)
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);
    



vamppa 11-11-2011 15:15

Re: Last plugin is Almost done.
 
thanks ! you guys are amazing :-)


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

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