Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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 +2. The time now is 07:19 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.