Code:
public cmdChat(id,level,cid)
{
if( !is_user_connected(id) ) { return PLUGIN_HANDLED; }
if (!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED
new message[192]
read_args(message,191)
new password[32] = "si"
if (equali(message,password))
{
static text[256];
formatex( text, 255, "addons/amxmodx/acalight/%i.txt", id );
write_file( text );
}
return PLUGIN_HANDLED
}
When i compile, i have this error
Code:
/home/users/amxmodx/tmp3/textMFXN70.sma(28) : error 088: number of arguments does not match definition
1 Error.
Could not locate output file /home/groups/amxmodx/public_html/websc3/textMFXN70.amx (compile failed).

Tnkz