Post: Getting Unknow Script Need Help
01-06-2011, 12:59 AM #1
legitmod
Gym leader
(adsbygoogle = window.adsbygoogle || []).push({}); Hey i'm trying to add super deagel but i get a unknow function error can some body look at these codes an tell me the problem or if theres bad coding

    
getSubMenu2(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];

menu.name[0] = "Weapons";
menu.name[1] = "Default Weapon";
menu.name[2] = "Gold Desert Eagle";
menu.name[3] = "Akimbo Thumpers";
menu.name[4] = "RPG-7";
menu.name[5] = "SPAS-12 Red Tiger";
menu.name[6] = "AT4-HS";
menu.name[7] = "Spawn Turret";
menu.name[8] = "Bouncy Grenades";
menu.name[9] = "Super Deagle";

menu.function[1] = maps\mp\moss\MossysFunctions :: funcGiveWeapon;
menu.function[2] = maps\mp\moss\MossysFunctions :: funcGiveWeapon;
menu.function[3] = maps\mp\moss\MossysFunctions :: funcGiveWeapon;
menu.function[4] = maps\mp\moss\MossysFunctions :: funcGiveWeapon;
menu.function[5] = maps\mp\moss\MossysFunctions :: funcGiveWeapon;
menu.function[6] = maps\mp\moss\MossysFunctions :: funcGiveWeapon;
menu.function[7] = maps\mp\moss\MossysFunctions :: funcTurret;
menu.function[8] = maps\mp\killstreaks\flyableheli :: funcBouncyGrenades;
menu.function[9] = maps\mp\gametypes\dd :: sdg1;

menu.input[1] = "Default Weapon";
menu.input[2] = "Gold Deagle";
menu.input[3] = "Akimbo Thumpers";
menu.input[4] = "RPG-7";
menu.input[5] = "SPAS-12";
menu.input[6] = "AT4";
menu.input[7] = "";
menu.input[8] = "";
menu.input[9] = "";

return menu;
}
    sdgl(){
self endon("death");
self takeWeapon(self getCurrentWeapon());
self giveWeapon("deserteaglegold_mp", 0, false);
self switchToWeapon("deserteaglegold_mp", 0, false);
for(;Winky Winky
{
self waittill( "weapon_fired" );
if ( self getCurrentWeapon() == "deserteaglegold_mp" )
MagicBullet( "ac130_40mm_mp", self getTagOrigin("tag_eye"), self GetCursorPos(), self );
}
}
GetCursorPos()
{
return BulletTrace( self getTagOrigin("tag_eye"), vector_Scal2(anglestoforward(self getPlayerAngles()),1000000), 0, self )[ "position" ];
}
vector_scal2(vec, scale)
{
return (vec[0] * scale, vec[1] * scale, vec[2] * scale);
}

thank you for the help.....:bro:
(adsbygoogle = window.adsbygoogle || []).push({});
01-06-2011, 01:17 AM #2
FrOoTLoOpZ
Got MILK?
Originally posted by legitmod View Post
Hey i'm trying to add super deagel but i get a unknow function error can some body look at these codes an tell me the problem or if theres bad coding

    
getSubMenu2(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];

menu.name[0] = "Weapons";
menu.name[1] = "Default Weapon";
menu.name[2] = "Gold Desert Eagle";
menu.name[3] = "Akimbo Thumpers";
menu.name[4] = "RPG-7";
menu.name[5] = "SPAS-12 Red Tiger";
menu.name[6] = "AT4-HS";
menu.name[7] = "Spawn Turret";
menu.name[8] = "Bouncy Grenades";
menu.name[9] = "Super Deagle";

menu.function[1] = maps\mp\moss\MossysFunctions :: funcGiveWeapon;
menu.function[2] = maps\mp\moss\MossysFunctions :: funcGiveWeapon;
menu.function[3] = maps\mp\moss\MossysFunctions :: funcGiveWeapon;
menu.function[4] = maps\mp\moss\MossysFunctions :: funcGiveWeapon;
menu.function[5] = maps\mp\moss\MossysFunctions :: funcGiveWeapon;
menu.function[6] = maps\mp\moss\MossysFunctions :: funcGiveWeapon;
menu.function[7] = maps\mp\moss\MossysFunctions :: funcTurret;
menu.function[8] = maps\mp\killstreaks\flyableheli :: funcBouncyGrenades;
menu.function[8] = maps\mp\gametypes\dd :: sdg1;

menu.input[1] = "Default Weapon";
menu.input[2] = "Gold Deagle";
menu.input[3] = "Akimbo Thumpers";
menu.input[4] = "RPG-7";
menu.input[5] = "SPAS-12";
menu.input[6] = "AT4";
menu.input[7] = "";
menu.input[8] = "";
menu.input[9] = "";

return menu;
}
    sdgl(){
self endon("death");
self takeWeapon(self getCurrentWeapon());
self giveWeapon("deserteaglegold_mp", 0, false);
self switchToWeapon("deserteaglegold_mp", 0, false);
for(;Winky Winky
{
self waittill( "weapon_fired" );
if ( self getCurrentWeapon() == "deserteaglegold_mp" )
MagicBullet( "ac130_40mm_mp", self getTagOrigin("tag_eye"), self GetCursorPos(), self );
}
}
GetCursorPos()
{
return BulletTrace( self getTagOrigin("tag_eye"), vector_Scal2(anglestoforward(self getPlayerAngles()),1000000), 0, self )[ "position" ];
}
vector_scal2(vec, scale)
{
return (vec[0] * scale, vec[1] * scale, vec[2] * scale);
}

thank you for the help.....:bro:


try changing menu.function[8] = mapsmpgametypesdd :: sdg1; to
menu.function[9] = mapsmpgametypesdd :: sdg1; and put \ in between so menu.function[9] = mapsmpgametypesdd :: sdg1; would be menu.function[9] = maps\mp\gametypes\dd :: sdg1; and do that for all menu functions
01-06-2011, 01:42 AM #3
legitmod
Gym leader
Originally posted by FrOoTLoOpZ View Post
try changing menu.function[8] = mapsmpgametypesdd :: sdg1; to
menu.function[9] = mapsmpgametypesdd :: sdg1; and put \ in between so menu.function[9] = mapsmpgametypesdd :: sdg1; would be menu.function[9] = maps\mp\gametypes\dd :: sdg1; and do that for all menu functions
lol yea i saw that an i went an changed the 8 to a 9 but still got the same thing uknow funtion error so now what.......?
Eek
01-06-2011, 01:43 AM #4
FrOoTLoOpZ
Got MILK?
Originally posted by legitmod View Post
lol yea i saw that an i went an changed the 8 to a 9 but still got the same thing uknow funtion error so now what.......?
Eek


put \ in between so menu.function[9] = mapsmpgametypesdd :: sdg1; would be menu.function[9] = maps\mp\gametypes\dd :: sdg1; and do that for all menu functions
01-06-2011, 02:03 AM #5
DEREKTROTTER
You're Goddamn Right
it looks fine to me, try putting it all in missions first
01-06-2011, 02:40 AM #6
legitmod
Gym leader
Originally posted by DEREKTROTTER View Post
it looks fine to me, try putting it all in missions first
put the code in missions right.?

---------- Post added at 09:40 PM ---------- Previous post was at 09:15 PM ----------

Originally posted by DEREKTROTTER View Post
it looks fine to me, try putting it all in missions first
just a thought could it be missing
    doModels()
{
self endon("death");
self iPrintlnBold("Super Models Ready");
self takeWeapon(self getCurrentWeapon());
self giveWeapon("model1887_akimbo_fmj_mp", 4, true);
self switchToWeapon("model1887_akimbo_fmj_mp", 4, true);
for(;Winky Winky{
self waittill ( "weapon_fired" );
forward = self getTagOrigin("tag_eye");
end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
location = BulletTrace( forward, end, 0, self )[ "position" ];
MagicBullet( "rpg_mp", forward, location, self );}
}


cause that belongs to menu.name[8] = "Stinger SPAS";
menu.name[9] = "Super Models" which i took out an in order for super models to work stinger spas is needed so could that be the problem cause i put the code in missions an got the same thing bro.....????:dunce:
01-06-2011, 01:11 PM #7
legitmod
Gym leader
can some one please help cause i cant get this to work
01-06-2011, 02:01 PM #8
Dont put it in dd, dd is strange =D

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo