Raised This Month: $ Target: $400
 0% 

cant compile knife menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
itoxicreal
Senior Member
Join Date: Jun 2018
Old 06-22-2020 , 14:22   cant compile knife menu
Reply With Quote #1

Hey , i edited this knife menu and tried adding a knife, im sure i did everything carefully and did it right but i think i made a few silly mistakes.
Attached Files
File Type: sma Get Plugin or Get Source (zp_knife_menu.sma - 84 views - 30.4 KB)
itoxicreal is offline
ZaX
Senior Member
Join Date: Jan 2015
Old 06-22-2020 , 15:17   Re: cant compile knife menu
Reply With Quote #2

brackets in
Code:
public give_hammer(id)
and
Code:
public fw_PlayerPreThink(id)
functions
Attached Files
File Type: sma Get Plugin or Get Source (zp_knife_menu.sma - 60 views - 30.3 KB)
ZaX is offline
itoxicreal
Senior Member
Join Date: Jun 2018
Old 06-22-2020 , 19:07   Re: cant compile knife menu
Reply With Quote #3

i get ,

//// zp_knife_menu.sma
// C:\Users\reali\cstrike\addons\amxmodx\scripti ng\zp_knife_menu.sma(273) : error 017: undefined symbol "print_col_chat"
// C:\Users\reali\cstrike\addons\amxmodx\scripti ng\zp_knife_menu.sma(349) : error 017: undefined symbol "give_sword"
// C:\Users\reali\cstrike\addons\amxmodx\scripti ng\zp_knife_menu.sma(432) : warning 217: loose indentation
// C:\Users\reali\cstrike\addons\amxmodx\scripti ng\zp_knife_menu.sma(432) : error 029: invalid expression, assumed zero
// C:\Users\reali\cstrike\addons\amxmodx\scripti ng\zp_knife_menu.sma(432) : error 017: undefined symbol "give_sword"
// C:\Users\reali\cstrike\addons\amxmodx\scripti ng\zp_knife_menu.sma(454) : error 029: invalid expression, assumed zero
// C:\Users\reali\cstrike\addons\amxmodx\scripti ng\zp_knife_menu.sma(454) : error 017: undefined symbol "checkWeapon"
// C:\Users\reali\cstrike\addons\amxmodx\scripti ng\zp_knife_menu.sma(462) : error 017: undefined symbol "checkModel"
// C:\Users\reali\cstrike\addons\amxmodx\scripti ng\zp_knife_menu.sma(466) : error 029: invalid expression, assumed zero
// C:\Users\reali\cstrike\addons\amxmodx\scripti ng\zp_knife_menu.sma(466) : error 017: undefined symbol "checkModel"
// C:\Users\reali\cstrike\addons\amxmodx\scripti ng\zp_knife_menu.sma(50 : warning 225: unreachable code
// C:\Users\reali\cstrike\addons\amxmodx\scripti ng\zp_knife_menu.sma(50 : error 029: invalid expression, assumed zero
// C:\Users\reali\cstrike\addons\amxmodx\scripti ng\zp_knife_menu.sma(50 : error 017: undefined symbol "fw_EmitSound"
// C:\Users\reali\cstrike\addons\amxmodx\scripti ng\zp_knife_menu.sma(50 : error 088: number of arguments does not match definition
// C:\Users\reali\cstrike\addons\amxmodx\scripti ng\zp_knife_menu.sma(50 : fatal error 107: too many error messages on one line
itoxicreal is offline
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 06-22-2020 , 19:54   Re: cant compile knife menu
Reply With Quote #4

You probably don't have required includes for this plugin
__________________
Contact! || Discord:
Mr_Boopsy_#2066
supertrio17 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-23-2020 , 09:15   Re: cant compile knife menu
Reply With Quote #5

@itoxicreal - the plugin attached in the second post compiles just fine. The errors you provided are from your own code in the first post.

@supertrio17 - what includes? If he didn't, the error would clearly say that he doesn't.
__________________

Last edited by OciXCrom; 06-23-2020 at 09:15.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
itoxicreal
Senior Member
Join Date: Jun 2018
Old 06-23-2020 , 14:22   Re: cant compile knife menu
Reply With Quote #6

Oh okay thank you, I just compiled the plugin i must have replaced it with old file
itoxicreal 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 17:05.


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