Raised This Month: $51 Target: $400
 12% 

[INC] String Stocks


Post New Thread Reply   
 
Thread Tools Display Modes
Tirant
Veteran Member
Join Date: Jul 2008
Location: Los Angeles, California
Old 09-09-2011 , 11:06   Re: [INC] String Stocks
Reply With Quote #21

Quote:
Originally Posted by fysiks View Post
lol, I'm just making you ask the question, "Is it really worth it?"
I know. I was just trying to make you feel bad.
__________________

PM me if you're interested in buying the Credits addition for Base Builder
Battlefield Rebirth [66% done]
Call of Duty: MW2 [100% done]
Base Builder [100% done]
Tirant is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 09-13-2011 , 11:32   Re: [INC] String Stocks
Reply With Quote #22

I'm using strrfind() like this:
PHP Code:
new szTextureModel[64], iPos;
for(new 
eItems:eItems1eItemsi++)
{
    
strrfind(g_szItemModels[i], ".mdl"1);
    
formatex(szTextureModelcharsmax(szTextureModel), "%st.mdl"g_szItemModels[i][iPos]);
        
    if(
file_exists(szTextureModel))
        
precache_model(szTextureModel);
            
    
precache_model(g_szItemModels[i]);
        
    
log_to_file("addons/amxmodx/log.txt""Item texture model: %s"szTextureModel);        

to format the seperate T models from the model but i get a compiler error from the include file:

Code:
scripting\include\string_stocks.inc(390) : error 010: invalid function or declaration
I checked the line and it is coming from str_cat() which i never used anywhere.

PHP Code:
stock str_cat(output[], output_len, ...)
{
    new 
argc numargs();
    
    new 
lenc;
    
    
str_empty(output);
    
    for(new 
2<= argci++)
    {
        
len 0;
        
        while(
len charsmax(__temp_string) && is_char(getarg(ilen))
        {
            
__temp_string[len++] = c;
        }
        
        
str_empty(__temp_stringlen);
        
        
len add(outputoutput_len__temp_string);
    }
    
    return 
len;    // This line

Not sure what's wrong with it.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 09-13-2011 , 13:23   Re: [INC] String Stocks
Reply With Quote #23

Line 380:
Code:
        while(len < charsmax(__temp_string) && is_char(c = getarg(i, len))
is missing a closing parenthesis.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 09-13-2011 , 14:25   Re: [INC] String Stocks
Reply With Quote #24

Didn't notice, thanks.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Shadow Of Death
Senior Member
Join Date: Jun 2005
Old 11-12-2011 , 16:20   Re: [INC] String Stocks
Reply With Quote #25

Fix for this error
Code:
string_stocks.inc(390) : error 010: invalid function or declaration
Attached Files
File Type: inc string_stocks.inc (23.6 KB, 206 views)
__________________
Shadow Of Death is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-12-2011 , 16:28   Re: [INC] String Stocks
Reply With Quote #26

Quote:
Originally Posted by Shadow Of Death View Post
Fix for this error
Code:
string_stocks.inc(390) : error 010: invalid function or declaration
Fix was already stated in Post #23.
__________________

Last edited by fysiks; 11-12-2011 at 16:28.
fysiks is offline
Shadow Of Death
Senior Member
Join Date: Jun 2005
Old 11-12-2011 , 20:39   Re: [INC] String Stocks
Reply With Quote #27

but not fixed in actual download since 2 month...
__________________
Shadow Of Death is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 11-13-2011 , 18:39   Re: [INC] String Stocks
Reply With Quote #28

Quote:
Originally Posted by Shadow Of Death View Post
but not fixed in actual download since 2 month...
He'll get to it when he can, why don't you just fix it for yourself.
__________________
Hi.
Kreation is offline
Shadow Of Death
Senior Member
Join Date: Jun 2005
Old 11-15-2011 , 17:45   Re: [INC] String Stocks
Reply With Quote #29

Sry to try help other they cant fix it for him self. Bad stand i think.
__________________
Shadow Of Death is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 01-29-2012 , 18:44   Re: [INC] String Stocks
Reply With Quote #30

Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

G:\Documenten\Mathijs\Amxx-Studio\include\string_stocks.inc(390) : error 010: invalid function or declaration
G:\Documenten\Mathijs\Amxx-Studio\include\string_stocks.inc(713) : error 017: undefined symbol "length"
G:\Documenten\Mathijs\Amxx-Studio\include\string_stocks.inc(719) : warning 204: symbol is assigned a value that is never used: "find_len"

2 Errors.
Could not locate output file ******** (compile failed).
Can you fix this?

Thanks
__________________
Retired.
Xalus 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 21:58.


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