AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   What is max string length? (https://forums.alliedmods.net/showthread.php?t=12534)

BigWalnutZ 04-17-2005 15:36

What is max string length?
 
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 04-18-2005 09:51

BUMP

I couldn't find this info in the small.pdf, so help would be appreciated.

PM 04-18-2005 10:18

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 :D

BioHazardousWaste 04-20-2005 19:24

good question, i've been trying to find this myself. What are the maxes for strings and numbers?

Cronck 04-25-2005 07:51

Did anyone ever get the answer of this question? I wanna know it too :D

BAILOPAN 04-25-2005 08:30

try
Code:
#pragma stacksize 16384


All times are GMT -4. The time now is 10:03.

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