but how to crete the buffer command?? i'm still don't get it
There is no 'buffer command'. A signal on an entity can be of the following modes:
in = Input only, cannot be assigned to
out = Output only, cannot be used as an input
buffer = Output, but the output value that is assigned can also be read and used inside the entity
inout = Input/Output. When used as an input the signal is being driven by some external device or entity. Generally is of no use in FPGA/CPLD designs except at the top level of a design when interfacing to some physical device (like RAM) that happens to have a bi-directional bus. FPGA/CPLDs typically do not have any internal signals that can be driven by more than one source so the synthesis tool will typically flag an error when trying to build such a device.
You don't say what your 'other error' is all about so nobody can really help here. Simply posting your code and not copy/pasting the error message isn't very helpful.
Kevin Jennings