Raised This Month: $ Target: $400
 0% 

I'll just leave this here...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TeddyDesTodes
Senior Member
Join Date: Oct 2008
Location: 10.25.15.210
Old 06-14-2009 , 19:10   I'll just leave this here...
Reply With Quote #1

its just a little plugin to search your mapsfolder should work with any hl mod, i dont want this for approval cuz it has some bug i dont want to fix

if someone is willing to fix it, do it and release it... but mention me kthxbye
Attached Files
File Type: sma Get Plugin or Get Source (mapsearch.sma - 557 views - 3.5 KB)
__________________
TeddyDesTodes is offline
Send a message via ICQ to TeddyDesTodes
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-15-2009 , 05:27   Re: I'll just leave this here...
Reply With Quote #2

I remember this plugin
__________________
xPaw is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 06-15-2009 , 07:51   Re: I'll just leave this here...
Reply With Quote #3

whats the bug ?
KadiR is offline
TeddyDesTodes
Senior Member
Join Date: Oct 2008
Location: 10.25.15.210
Old 06-15-2009 , 08:30   Re: I'll just leave this here...
Reply With Quote #4

first page is shown twice and if you enter an empty search string an empty menu will be shown(just title prev/next/exit [no entrys])

but im too lazy/busy to fix it
__________________
TeddyDesTodes is offline
Send a message via ICQ to TeddyDesTodes
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-15-2009 , 08:33   Re: I'll just leave this here...
Reply With Quote #5

Quote:
Originally Posted by TeddyDesTodes View Post
if you enter an empty search string an empty menu will be shown(just title prev/next/exit [no entrys])
PHP Code:
public cmdSearch(id,level,cid ){
    if (!
cmd_access(idlevelcid1))
        return 
PLUGIN_HANDLED
    
new szSearch[33];
    
read_argv(1,szSearch,32);
    
    if( 
equalszSearch"" ) || equalszSearch" " ) ) {
        
client_print(id,print_chat,"[AMXX] no search string supplied");
        return 
PLUGIN_HANDLED
    
}
    
    
copy(g_SearchString[id],32,szSearch);
    
search(id);
    
g_Offset[id] = 0;
    
g_Next[id] = 0;
    return 
PLUGIN_HANDLED

;)
__________________
xPaw is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 06-15-2009 , 14:51   Re: I'll just leave this here...
Reply With Quote #6

can you post the full , fixed version pawn?
KadiR is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-15-2009 , 14:57   Re: I'll just leave this here...
Reply With Quote #7

why not just replace function your self?
__________________
xPaw is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-15-2009 , 18:52   Re: I'll just leave this here...
Reply With Quote #8

Code:
equal( szSearch, "" )
?
Code:
!szSearch[0]
And maybe likewise for the space character?
__________________
fysiks is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-15-2009 , 20:55   Re: I'll just leave this here...
Reply With Quote #9

PHP Code:
if( equalszSearch"" ) || equalszSearch" " ) ) { 

PHP Code:
trimszSearch );
if( !
szSearch] ) { 
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 06-16-2009 , 06:20   Re: I'll just leave this here...
Reply With Quote #10

cause it is now changed 3 times? Oo
KadiR 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 22:26.


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