Raised This Month: $ Target: $400
 0% 

find_plugin_byfile ( pname[], [ ignorecase = 1 ] ) [solved]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 08-01-2007 , 16:16   find_plugin_byfile ( pname[], [ ignorecase = 1 ] ) [solved]
Reply With Quote #1

new var = find_plugin_byfile ( "war3ft.amxx", 1)

the error is expression must be constant

what does that mean?
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME

Last edited by kp_uparrow; 08-01-2007 at 20:01.
kp_uparrow is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 08-01-2007 , 16:38   Re: find_plugin_byfile ( pname[], [ ignorecase = 1 ] )
Reply With Quote #2

Where in the source do you have that?
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 08-01-2007 , 16:55   Re: find_plugin_byfile ( pname[], [ ignorecase = 1 ] )
Reply With Quote #3

top global variable
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 08-01-2007 , 17:01   Re: find_plugin_byfile ( pname[], [ ignorecase = 1 ] )
Reply With Quote #4

You can't call natives or other functions outside of a function.
Lee is offline
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 08-01-2007 , 17:02   Re: find_plugin_byfile ( pname[], [ ignorecase = 1 ] )
Reply With Quote #5

so i define the variable and call the function in plugin ini right?
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 08-01-2007 , 17:03   Re: find_plugin_byfile ( pname[], [ ignorecase = 1 ] )
Reply With Quote #6

Yep.
Lee is offline
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 08-01-2007 , 19:57   Re: find_plugin_byfile ( pname[], [ ignorecase = 1 ] )
Reply With Quote #7

worked
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow 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 20:05.


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