Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AI Survival Edit Syntax Error
#1
Hi,
i have edit the AI Survival Mod! In version 0.1 all works fine but the same in version 0.2 make a syntax error! I dont find the error. At first i add Dragon's Breath from zxz0O0. Other Features i will add then the syntax error is fixed but i cant find. Please Help

The Mod in Attachment:

Bye


Attached Files
.zip   mp_AI-Survival.zip (Size: 110.67 KB / Downloads: 22)
Reply

#2
Maybe could post the code, which u have added so we can help u better?
Reply

#3
Go ingame and write /logfile 1 in console start mod ..> start match and it will show you the error.
Reply

#4
Thanks
now i know which codeline make the error but i cant find the Error in Line 412!
Here is a Screen from the Codeline and the Error in Black Ops.
The Screen is in the Attachment because i cant bind a link from ImageShack in the Post


Attached Files Image(s)
   
Reply

#5
you can post the directlink from imageshack, even without being registered there....(right click->show image)
Reply

#6
Ok,
can someone help me ?
Reply

#7
Is 'BulletsOnWall' its own function? If so, you can't declare a function within another function. I also see know opening brace for the function.

If you have defined the function but are calling it there, you need a semi-colon at the end of the line.
Reply

#8
So now i have test it again and now i have a different error!

http://imageshack.us/photo/my-images/40/shot0000ak.jpg/

But there i didnt change any code!
Reply

#9
Can you post more of the code? Don't take a screenshot of it, just copy paste relevant parts within 'php' tags, or just upload the whole _rank.gsc. First option would be better Tongue

EDIT: Just saw the code you posted.

Is this what it was meant to be like? I assume 'onJoinedSpectators' is a separate function to 'BulletsOnWall'. In that case, you missed a closing brace for 'onJoinedSpectators' and you have a backwards brace in the start of 'BulletsOnWall'. See if this fixed the problem

PHP Code:
onJoinedSpectators()
{
    
self endon("disconnect");

    for(;;)
    {
        
self waittill("joined_spectators");
        
self thread removeRankHUD();
        if(
isdefined(self.hud_score)) self.hud_score destroy(); 
        if(
isdefined(self.hud_menuhelp)) self.hud_menuhelp destroy();
        if(
isdefined(self.hud_roundinfo)) self.hud_roundinfo destroy();
    }
}
BulletsOnWall(flametype)
{
    
self endon("death");
    
self endon("disconnect");
    if(
flametype=="smokeonly")
    {
        
effect level._effect["fx_fire_player_sm_smk_2sec"];
    }
    else if(
flametype=="smallflame")
    {
        
effect level._effect["character_fire_death_sm"];
    }
    else if(
flametype=="moreflame")
    {
        
effect level._effect["character_fire_death_torso"];
    }
    else
    {
        
effect level._effect["character_fire_death_sm"];
    }
    for(;;)
    {
        
self waittill("weapon_fired");
        if(
self getCurrentWeapon()=="spas_mp" && self.hasDragonsBreath)
        {
                
forward self getTagOrigin("j_head");
                
end self thread vector_scal(anglesToForward(self getPlayerAngles()),1000000);
                
position BulletTrace(forwardend0self)["position"];
                
entity BulletTrace(forwardend0self)["entity"];
                if(
isDefined(entity.model))
                {
                    if(!
IsSubStr(entity.model"mp_body"))
                    {
                        if(
Distance(self.originposition)<512)
                        {
                            
PlayFx(effectposition);
                        }
                    }
                }
                else if(!
isDefined(entity.model))
                {
                    if(
Distance(self.originposition)<512)
                    {
                        
PlayFx(effectposition);
                    }
                }
        }
        
wait 0.5;
    }

Reply

#10
U made a } isntead of { to start the function : )

EDIT:

Yes, pls post the code whee the error is.
Or u could use the syntaxChecker by SuperNova
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Mep Edit coordinance raminr63 2 3,082 10-22-2013, 15:02
Last Post: Yamato
  Help error when run mod mr.apple 9 6,642 09-24-2013, 21:49
Last Post: Nekochan
Information Help How to edit new derived entry? (Solved) SSonic70 1 2,739 08-20-2013, 15:29
Last Post: Nekochan
  [Release] MOSSY v9.12 Re-edit by BloKK187 BloKK187 24 35,532 08-05-2013, 23:44
Last Post: TheWraith10219
  Help improper syntax but i dont know where Brandeeno 6 4,373 07-28-2013, 19:25
Last Post: Brandeeno
  Help COD mw3 Error Couln't load image 3_cursor3:s Paylgs 2 14,294 07-18-2013, 18:46
Last Post: Nekochan
  Mod Error! help please Brandeeno 2 4,060 07-11-2013, 21:06
Last Post: Brandeeno
  Help xkmod error Domino29 2 4,458 07-11-2013, 20:07
Last Post: Brandeeno
  [Request] Edit BOloader 0.8 Bot settings IgnaBmx 2 3,484 06-30-2013, 02:35
Last Post: IgnaBmx
Question Help what program, open and edit plugins ??? lexa__33 1 2,813 06-24-2013, 09:36
Last Post: EnVi Sweden Rocks

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.