Raised This Month: $ Target: $400
 0% 

knife mod help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cosmo55
New Member
Join Date: Mar 2007
Old 09-09-2007 , 00:36   knife mod help
Reply With Quote #1

I edited the knife_mod.sma and when i use the compiler i get these errors that the word of all the knives that i added is an unidentified symbol. Plz help and thank you in advance
Attached Files
File Type: sma Get Plugin or Get Source (knife_mod.sma - 189 views - 8.4 KB)
Cosmo55 is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 09-09-2007 , 03:45   Re: knife mod help
Reply With Quote #2

Quote:
// C:\Spel\steam\steamapps\links_return\conditio n zero\czero\addons\amxmodx\scripting\test.sma( 91) : error 017: undefined symbol "dildo"
// C:\Spel\steam\steamapps\links_return\conditio n zero\czero\addons\amxmodx\scripting\test.sma( 96) : error 017: undefined symbol "machete"
// C:\Spel\steam\steamapps\links_return\conditio n zero\czero\addons\amxmodx\scripting\test.sma( 101) : error 017: undefined symbol "trout"
// C:\Spel\steam\steamapps\links_return\conditio n zero\czero\addons\amxmodx\scripting\test.sma( 106) : error 017: undefined symbol "kungfu"
// C:\Spel\steam\steamapps\links_return\conditio n zero\czero\addons\amxmodx\scripting\test.sma( 111) : error 017: undefined symbol "pistol"
// C:\Spel\steam\steamapps\links_return\conditio n zero\czero\addons\amxmodx\scripting\test.sma( 17 : error 021: symbol already defined: "saber"
// C:\Spel\steam\steamapps\links_return\conditio n zero\czero\addons\amxmodx\scripting\test.sma( 18 : error 021: symbol already defined: "saber"
// C:\Spel\steam\steamapps\links_return\conditio n zero\czero\addons\amxmodx\scripting\test.sma( 19 : error 021: symbol already defined: "saber"
// C:\Spel\steam\steamapps\links_return\conditio n zero\czero\addons\amxmodx\scripting\test.sma( 20 : error 021: symbol already defined: "saber"
// C:\Spel\steam\steamapps\links_return\conditio n zero\czero\addons\amxmodx\scripting\test.sma( 21 : error 021: symbol already defined: "saber"

didnt compile becase you forgot to change the name of public saber(id)
so becase of that some functions are never used(undefined symbol)
and public_saber is used to many times(already defined)
can happen enyone when copy/pasted =)

PHP Code:
 
public knife(id) { 
 
knife_model[id] = 0
 
new ClipAmmoWeapon get_user_weapon(idClipAmmo
 if ( 
Weapon == CSW_KNIFE ) { 
  
entity_set_string(idEV_SZ_viewmodel"models/v_knife.mdl"
  
entity_set_string(idEV_SZ_weaponmodel"models/p_knife.mdl"
 } 
 

public 
butcher(id) { 
 
knife_model[id] = 
 
new ClipAmmoWeapon get_user_weapon(idClipAmmo
 if ( 
Weapon == CSW_KNIFE ) { 
  
entity_set_string(idEV_SZ_viewmodel"models/knife-mod/v_butcher.mdl"
  
entity_set_string(idEV_SZ_weaponmodel"models/knife-mod/p_butcher.mdl"
 } 
 

public 
bak(id) { 
 
knife_model[id] = 
 
new ClipAmmoWeapon get_user_weapon(idClipAmmo
 if ( 
Weapon == CSW_KNIFE ) { 
  
entity_set_string(idEV_SZ_viewmodel"models/knife-mod/v_bak.mdl"
  
entity_set_string(idEV_SZ_weaponmodel"models/knife-mod/p_bak.mdl"
 } 
 
}
public 
merce(id) { 
 
knife_model[id] = 
 
new ClipAmmoWeapon get_user_weapon(idClipAmmo
 if ( 
Weapon == CSW_KNIFE ) { 
  
entity_set_string(idEV_SZ_viewmodel"models/knife-mod/v_merce.mdl"
  
entity_set_string(idEV_SZ_weaponmodel"models/knife-mod/p_merce.mdl"
 }
 

public 
saber(id) { 
 
knife_model[id] = 
 
new ClipAmmoWeapon get_user_weapon(idClipAmmo
 if ( 
Weapon == CSW_KNIFE ) { 
  
entity_set_string(idEV_SZ_viewmodel"models/knife-mod/v_saber.mdl"
  
entity_set_string(idEV_SZ_weaponmodel"models/knife-mod/p_saber.mdl"
 }
 

public 
saber(id) { 
 
knife_model[id] = 
 
new ClipAmmoWeapon get_user_weapon(idClipAmmo
 if ( 
Weapon == CSW_KNIFE ) { 
  
entity_set_string(idEV_SZ_viewmodel"models/knife-mod/v_clilclo.mdl"
  
entity_set_string(idEV_SZ_weaponmodel"models/knife-mod/p_clilclo.mdl"
 }
 

public 
saber(id) { 
 
knife_model[id] = 
 
new ClipAmmoWeapon get_user_weapon(idClipAmmo
 if ( 
Weapon == CSW_KNIFE ) { 
  
entity_set_string(idEV_SZ_viewmodel"models/knife-mod/v_machete.mdl"
  
entity_set_string(idEV_SZ_weaponmodel"models/knife-mod/p_machete.mdl"
 }
 

public 
saber(id) { 
 
knife_model[id] = 
 
new ClipAmmoWeapon get_user_weapon(idClipAmmo
 if ( 
Weapon == CSW_KNIFE ) { 
  
entity_set_string(idEV_SZ_viewmodel"models/knife-mod/v_trout.mdl"
  
entity_set_string(idEV_SZ_weaponmodel"models/knife-mod/p_trout.mdl"
 }
 

public 
saber(id) { 
 
knife_model[id] = 
 
new ClipAmmoWeapon get_user_weapon(idClipAmmo
 if ( 
Weapon == CSW_KNIFE ) { 
  
entity_set_string(idEV_SZ_viewmodel"models/knife-mod/v_kungfu.mdl"
  
entity_set_string(idEV_SZ_weaponmodel"models/knife-mod/p_kungfu.mdl"
 }
 

public 
saber(id) { 
 
knife_model[id] = 
 
new ClipAmmoWeapon get_user_weapon(idClipAmmo
 if ( 
Weapon == CSW_KNIFE ) { 
  
entity_set_string(idEV_SZ_viewmodel"models/knife-mod/v_pistol.mdl"
 }
 

__________________
If one of my plugins become broken, contact me by mail. [email protected]

Last edited by fxfighter; 09-09-2007 at 03:49.
fxfighter is offline
Send a message via MSN to fxfighter
Cosmo55
New Member
Join Date: Mar 2007
Old 09-09-2007 , 11:02   Re: knife mod help
Reply With Quote #3

thanx man!! Im so stupid >.<
Cosmo55 is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 09-09-2007 , 11:30   Re: knife mod help
Reply With Quote #4

hey you arent ,
you just miss some code enyone culd have done that
__________________
If one of my plugins become broken, contact me by mail. [email protected]
fxfighter is offline
Send a message via MSN to fxfighter
Cosmo55
New Member
Join Date: Mar 2007
Old 09-09-2007 , 11:32   Re: knife mod help
Reply With Quote #5

I got another problem -_-! The plugin loads good on my server but numbers 6-9 dont work on the menu. plz help me again
Attached Files
File Type: sma Get Plugin or Get Source (knife_mod.sma - 637 views - 8.2 KB)
File Type: amxx knife_mod.amxx (9.5 KB, 149 views)
Cosmo55 is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 09-09-2007 , 11:40   Re: knife mod help
Reply With Quote #6

Quote:
new keys = ( 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<9 )

you forgot to add more keys
but i got a feling it wont happen for you agin

new keys
Quote:
new keys = ( 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<5 | 1<<6 | 1<<7 | 1<<8 | 1<<9 )
__________________
If one of my plugins become broken, contact me by mail. [email protected]
fxfighter is offline
Send a message via MSN to fxfighter
Cosmo55
New Member
Join Date: Mar 2007
Old 09-09-2007 , 12:19   Re: knife mod help
Reply With Quote #7

oh i didnt noe i had to edit that alright man thnx again!
Cosmo55 is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 09-09-2007 , 12:27   Re: knife mod help
Reply With Quote #8

np =)
__________________
If one of my plugins become broken, contact me by mail. [email protected]
fxfighter is offline
Send a message via MSN to fxfighter
Reply


Thread Tools
Display Modes

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 16:14.


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