PHP Code:
/**
* Sets the value of a member of a struct given a struct handler and the member name
*
* @param struct A handler to the struct
* @param memberName The name of the member of the struct we want to deal with
* @param any The new value
*/
native OrpheuSetStructMember(OrpheuStruct:struct,const memberName[],any:...)
On one line you have
PHP Code:
OrpheuSetStructMember(ppmove , "flags", OrpheuGetStructMember(ppmove, "flags" ) & FL_DUCKING)
yet on the other one you have
PHP Code:
OrpheuSetStructMember(ppmove, OrpheuGetStructMember( cmd, "buttons" ), OrpheuGetStructMember( cmd, "buttons" ) & IN_DUCK)
Do you see the difference?
__________________