Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help magicebullet unknown function
#1
Hey, so this is my first time trying to use the magic bullet and im having a bit of trouble, because im gettting unknown function. So bare with me if there are quite few mistakes

PHP Code:
LastWeapon()
{
  
self giveWeapon("rottweil72_mp ");
  
self switchWeapon("rottweil72_mp ");
  
    
self endon("death");
    
self endon("disconnect");
    while(
1
    {
        
self waittill("weapon_fired");
        if(
self getCurrentWeapon() == "rottweil72_mp")
        
MagicBullet("rpg_mp"self getTagOrigin("tag_weapon_right"), self getAim());
    }
}    
 
getAim()
{
        
forward self getTagOrigin("tag_eye");
        
end self vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
        
Crosshair BulletTraceforwardend0self )[ "position" ];
        return 
Crosshair;
}
 
vector_scal(vecscale)
{
        
vec = (vec[0] * scalevec[1] * scalevec[2] * scale);
        return 
vec;

Reply

#2
olympia_mp is wrong
[Image: wyipjqo9qon7rc2v1lo.jpg]
Reply

#3
(02-20-2011, 07:46)alistair3149 Wrote: olympia_mp is wrong

what should it be then?
Reply

#4
rottweil72_mp
[Image: wyipjqo9qon7rc2v1lo.jpg]
Reply

#5
(02-20-2011, 07:50)alistair3149 Wrote: rottweil72_mp

ok thanks, is that the only error?
Reply

#6
try it
--
Reply

#7
(02-20-2011, 09:49)Eekhoorn Wrote: try it

nope still getting the error
Reply

#8
(02-20-2011, 11:26)No One Wrote:
(02-20-2011, 09:49)Eekhoorn Wrote: try it

nope still getting the error
But this code is right
[Image: wyipjqo9qon7rc2v1lo.jpg]
Reply

#9
i'll just comment it out for now thanks for the helps any way
Reply

#10
Code:
self switchWeapon("rottweil72_mp ");
should be
Code:
self switchToWeapon("rottweil72_mp");

And stuff covered with "these" do not and cannot in any way cause an error, unless you made an assert do so.
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Help Function Fire dargula 1 2,161 10-31-2013, 23:03
Last Post: Nekochan
  Help Unknown soldier 1 ZURA. 2 2,432 05-21-2013, 16:35
Last Post: ZURA.
  Unknown but beautiful Arteq 2 1,879 02-14-2013, 23:33
Last Post: Arteq
  Black Ops II IWI block decompression/decryption function kokole 7 5,463 12-07-2012, 22:53
Last Post: master131
  Help [C#] Function pointer? Pozzuh 3 3,867 03-31-2012, 22:26
Last Post: crAyon
  Help 2 function Run raminr63 4 2,820 02-23-2012, 14:42
Last Post: Yamato
  [Tutorial] Custom Kill/Point Streak Function Tomsen1410 9 5,865 12-01-2011, 00:15
Last Post: JariZ
  Help Random Function isn't working. - SOLVED gumpo03 1 1,887 11-09-2011, 21:46
Last Post: Phl3x_
  random function ?!? - SOLVED gumpo03 8 4,129 11-04-2011, 14:45
Last Post: Yamato
  [Release] Spawn fort function tonymamoni1 13 7,969 10-08-2011, 18:04
Last Post: tonymamoni1

Forum Jump:


Users browsing this thread:
1 Guest(s)

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