SA-MP Forums Archive
Pawn Maximum String Length? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Pawn Maximum String Length? (/showthread.php?tid=110137)



Pawn Maximum String Length? - mprofitt - 24.11.2009

Can some one please answer what the maximum string length is for Pawn?

string[] = "xxxxxx....."; // Maximum Length = ?
string[****]; // Maximum Length = ?

Thanks


Re: Pawn Maximum String Length? - Double-O-Seven - 24.11.2009

It works with 2048, with 4096 the format function seems to crash...


Re: Pawn Maximum String Length? - Daren_Jacobson - 24.11.2009

Am i allowed to make up numbers? because i don't think there is a limit, but maybe
new arrayactingasstring[2097152]; //2^21, a number that came into my head. no clue where from.


Re: Pawn Maximum String Length? - saiberfun - 25.11.2009

Quote:
Originally Posted by Daren_Jacobson
Am i allowed to make up numbers? because i don't think there is a limit, but maybe
new arrayactingasstring[2097152]; //2^21, a number that came into my head. no clue where from.
-1

https://sampwiki.blast.hk/wiki/Limits

Quote:
Originally Posted by Samp Wiki
Script Property Max Limit
Players 500
Vehicles 2000
Vehicle Models Unlimited
Global Objects 254
Per-Player Objects 254
Virtual Worlds 2,147,483,647
Map Icons 100
Race Checkpoints 1
Checkpoints 1
Script Property Dynamic Limit
Pickups 2048
3D Labels Global 1024
3D Labels Per-player 1024
Chat Bubble String 144 characters
Gangzones 1024
Menus 128
Server Property Limit
Gamemodes 16
Filterscripts 16
Text I/O 128 cells (512 bytes)
Name Length 20 characters.
Textdraws Limit
String Length 1024 characters
Shown In A Single Client's Screen 92
Created Serverwise 2048