Raised This Month: $ Target: $400
 0% 

need help get


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Zaser
Member
Join Date: Jan 2005
Old 02-21-2006 , 04:07   need help get
Reply With Quote #1

i get this error


// D:\scripting\carmod.sma(44 : error 021: symbol already defined: "client_Pre
Think"
//
// 1 Error.
// Could not locate output file D:\scripting\compiled\carmod.amx (compile failed
).
//
// Compilation Time: 1,3 sec
// ----------------------------------------




Code:
public client_PreThink(id) 
    { 
    if(incar[id] != 0) 
        { 
        new bufferstop = entity_get_int(id,EV_INT_button) 
         
        if(bufferstop != 0) { 
            entity_set_int(id,EV_INT_button,bufferstop & ~IN_ATTACK & ~IN_ATTACK2 & ~IN_ALT1 & ~IN_USE) 
        } 
         
        if((bufferstop & IN_JUMP) && (entity_get_int(id,EV_INT_flags) & ~FL_ONGROUND & ~FL_DUCKING)) { 
            entity_set_int(id,EV_INT_button,entity_get_int(id,EV_INT_button) & ~IN_JUMP) 
        } 
        return PLUGIN_CONTINUE 
    } 
    return PLUGIN_HANDLED
} 
----------


public client_PreThink(id) {
 
    if(incar[id]) 
    { 
        new Float:VecVel[3],Float:VecAngles[3]; 
        entity_get_vector(id,EV_VEC_velocity,VecVel); 
        entity_get_vector(id,EV_VEC_v_angle,VecAngles); 

        VecVel[0] = floatcos(VecAngles[1],degrees) * 800.0; 
        VecVel[1] = floatsin(VecAngles[1],degrees) * 800.0; 

        entity_set_vector(id,EV_VEC_velocity,VecVel); 
     
  } 
    return PLUGIN_HANDLED
}
how can i fix this?
Zaser is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode