View Single Post
  #1  
Old 03-01-2009, 06:19 AM
GULTHEX GULTHEX is offline
Registered User
Join Date: Jul 2008
Posts: 148
GULTHEX can only hope to improve
Smile Script help please reply fast

PHP Code:
//#CLIENTSIDE
if (weaponfired) {
 
this.attackpower 15;
 
clientr.m16on=1
  
if (this.m16on 1) {
  function 
onKeyPressedcodekey ) {
  if ( 
key == "f" ) {
        
setani dg_m16-fire,;
    
freezeplayer 0.1;
  
setshootparams bullet2;
  
shoot playerx,playery,playerz,
    
getangle(vecx(playerdir),vecy(playerdir)),
    
0,0,
    
dg_bullet,dg_m16-fire;
    
setani dg_m16-fire,;
    
freezeplayer 0.1;
    }
    }
} else if (
this.m16on == ) {
setani dg_punch,;
    }
    } 
it says

Script compiler output for gtest:
<b>error: missing semicolon at line 5: if (this.m16_on = 1) {
Weapon/GUI-script gtest added/updated by GULTHEX


i dont see whats wrong with it it does not need a semicolin there.
Reply With Quote