01-31-2015, 08:34 PM
When the launch his mod, I get here this error:[img][/img]
PHP Code:
const string BUTTONS_GO_TIMER = "BUTTONS_GO_TIMER_CALLBACK";
class ButtonsGo
{
if(event.KeyInput.PressedDown == true)
{
if (event.KeyInput.Key==KEY_KEY_A)
left=true;
{
AddPropForce("barrel01_1", 0, 0, 300, "World");
AddPropImpulse("barrel01_1", 0, 0, 5000, "world");
}
if(event.KeyInput.PressedDown == false)
{
if (event.KeyInput.Key==KEY_KEY_A)
left=false;
{
AddPropForce("barrel01_1", 0, 0, -300, "World");
AddPropImpulse("barrel01_1", 0, 0, -5000, "world");
}
}
}
ButtonsGo Buttons_obj_1;
void BUTTONS_GO_TIMER_CALLBACK(string &in timer_name)
{ Buttons_obj_1.Update(timer_name); }