Raised This Month: $ Target: $400
 0% 

Deagle


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Crazybeer
BANNED
Join Date: Jan 2010
Location: The Pacifier
Old 03-06-2010 , 11:12   Deagle
Reply With Quote #1

Hello,

I'm a newb coder. I'm trying to learn to code.

For now i am trying to add Deagle to Xp Mod v0.0.1

This is what i have done for far.

PHP Code:
#define ENABLE_DEAGLE           1 
PHP Code:
#define MAXLEVEL_DEAGLE        5 
PHP Code:
#define FIRST_XP_DEAGLE        1200 
PHP Code:
#define ANY_ABILITY_ENABLED (g_any_nade_enabled || g_any_health_enabled || g_any_armor_enabled || g_any_respawn_enabled || g_any_nofall_enabled || g_any_deagle_enabled) 
PHP Code:
new const g_any_weapon_enabled ENABLE_TERR_DEAGLE ENABLE_CT_DEAGLE;;
 
new const 
g_deagle_names[CsTeams][] =
{
 
"",
 
"T Deagle Chance",
 
"CT Deagle Chance",
 
""
};
 
new const 
g_deagle_classnames[Deagle][] =
{
 
"weapon_deagle",
};
 
new_const g_deagle_maxlevels[CsTeams] =
{
 
0,
 
MAXLEVEL_TERR_DEAGLE,
 
MAXLEVEL_CT_DEAGLE,
 
0
};
new const 
g_deagle_first_xp[CsTeams] =
{
 
0,
 
FIRST_XP_TERR_DEAGLE,
 
FIRST_XP_TERR_DEAGLE,
 
0
};
new_const g_deagle_chance[CsTeams] =
{
 
0,
 
CHANCE_MAX_TERR_DEAGLE,
 
CHANCE_MAX_CT_DEAGLE,
 
0
}, 
And i don't know what to do so it works.

If you fix it can you send it to private?
Attached Files
File Type: sma Get Plugin or Get Source (hns_xp.sma - 163 views - 55.0 KB)
Crazybeer is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 03-06-2010 , 12:55   Re: Deagle
Reply With Quote #2

Quote:
Originally Posted by Crazybeer View Post
new const g_deagle_classnames[Deagle][] =
{
weapon_deagle
};


Where did you get the "Deagle" from?
__________________
Hi.
Kreation is offline
Crazybeer
BANNED
Join Date: Jan 2010
Location: The Pacifier
Old 03-06-2010 , 13:01   Re: Deagle
Reply With Quote #3

What u mean?

Is it

PHP Code:
new const g_weapon_classnames[Deagle][] =
{
weapon_deagle
}; 
Crazybeer is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-06-2010 , 13:09   Re: Deagle
Reply With Quote #4

PHP Code:
new const g_deagle_classnames[Deagle][] =
{
 
"weapon_deagle",
}; 

PHP Code:
new const g_deagle_classnames[Deagle][] = "weapon_deagle" 
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Crazybeer
BANNED
Join Date: Jan 2010
Location: The Pacifier
Old 03-06-2010 , 13:37   Re: Deagle
Reply With Quote #5

Quote:
Originally Posted by wrecked_ View Post
PHP Code:
new const g_deagle_classnames[Deagle][] =
{
 
"weapon_deagle",
}; 

PHP Code:
new const g_deagle_classnames[Deagle][] = "weapon_deagle" 
But the first option is in Exolents Xp Mod.

So when i change will the Deagle work ?
Crazybeer is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-06-2010 , 13:38   Re: Deagle
Reply With Quote #6

I don't know why you didn't get any errors when trying to compile that. You had a comma after a single variable, and usually the compiler warns / errors you about that. It might work.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Old 03-06-2010, 16:31
Crazybeer
This message has been deleted by Crazybeer. Reason: Ops
Crazybeer
BANNED
Join Date: Jan 2010
Location: The Pacifier
Old 03-06-2010 , 16:43   Re: Deagle
Reply With Quote #7

wrecked_

The deagle menu wont appear in the Xp Mod menu.

What have i forget?
Crazybeer is offline
BunnYboii
Member
Join Date: Mar 2010
Old 03-07-2010 , 10:13   Re: Deagle
Reply With Quote #8

Little off-topic but where did ya learn codeing crazybeer i want to learn too
BunnYboii is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-07-2010 , 10:37   Re: Deagle
Reply With Quote #9

@Crazybeer - You need to add the deagle to the menu.

PHP Code:
menu_additemmenu"Deagle""integer"
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 03-07-2010 , 14:42   Re: Deagle
Reply With Quote #10

Either way it isn't going to work.. You need to tell the plugin what "Deagle" is. You can't put it in an array if it doesn't exist.
__________________
Hi.
Kreation is offline
Reply



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 -4. The time now is 08:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode