Pawn Maximum String Length?
#1

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

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

Thanks
Reply
#2

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

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.
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)