Try this. I didn't modify your code that much, just indented a bit.
Code:
public cmdChat(id,level,cid)
{
if (!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED
new message[192]
read_args(message,191)
remove_quotes(message); // remove the quotes
new password[32] /* = "si" NOT a good idea! use copy instead */
copy(password , 32 , "si");
new authid[33];
get_user_authid(id , authid , 32); // get their steamid
if(equali(message,password))
{
static text[256];
formatex( text, 255, "addons/amxmodx/acalight/%i.txt", authid );
write_file( text , steamid , -1 ); // writes their steamid to the end of the file
// you MUST create the 'acalight' directory first!!
}
return PLUGIN_HANDLED
}
__________________