Raised This Month: $ Target: $400
 0% 

What is max string length?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BigWalnutZ
Junior Member
Join Date: Apr 2005
Old 04-17-2005 , 15:36   What is max string length?
Reply With Quote #1

When I did AMX plugins I used a const that was a default, something like MAX_TEXT_LENGTH, or something to that affect. Reson I ask is because I do not know what the max length is and it is screwing up my plugin.

It works with
Code:
new message[2001] add(message, 2000, "blah") add(message, 2000, "more blah")
It doesn't work with
Code:
new message[4000] add(message, 3999, "blah") add(message, 3999, "more blah")

Error was something about a stack error. When I made the changes above it would do that. the 2000 working and the 4000 not[/code]
BigWalnutZ is offline
BigWalnutZ
Junior Member
Join Date: Apr 2005
Old 04-18-2005 , 09:51  
Reply With Quote #2

BUMP

I couldn't find this info in the small.pdf, so help would be appreciated.
BigWalnutZ is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 04-18-2005 , 10:18  
Reply With Quote #3

Weird, it shouldn't do that -- looks like a bug (?)

I'll look into that. Stack error indicates a compiler problem though. Or I'm confused
__________________
hello, i am pm
PM is offline
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 04-20-2005 , 19:24  
Reply With Quote #4

good question, i've been trying to find this myself. What are the maxes for strings and numbers?
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.

-Friedrich Nietzsche
BioHazardousWaste is offline
Send a message via MSN to BioHazardousWaste
Cronck
Member
Join Date: Apr 2005
Old 04-25-2005 , 07:51  
Reply With Quote #5

Did anyone ever get the answer of this question? I wanna know it too
Cronck is offline
BAILOPAN
Join Date: Jan 2004
Old 04-25-2005 , 08:30  
Reply With Quote #6

try
Code:
#pragma stacksize 16384
__________________
egg
BAILOPAN 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 10:03.


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