Limits
From SA-MP Wiki
(Difference between revisions)
Revision as of 18:00, 16 July 2015 Dugi (Talk | contribs) ← Previous diff |
Revision as of 18:00, 16 July 2015 Dugi (Talk | contribs) Next diff → |
||
Line 155: | Line 155: | ||
'''Notes:''' | '''Notes:''' | ||
- | * (*) There is an optional [http://forum.sa-mp.com/showthread.php?t=302503 800 player slot version] (since SA-MP 0.3d R2) and a [http://forum.sa-mp.com/showthread.php?t=340601 1000 player version] (since 0.3e) available. As of 0.3.7, there is only a 1000-player server. | ||
* (**) Although the vehicle model limit in 0.3 is unlimited, if you use a large amount of vehicle models, you may notice parts of your mode become framey as vehicle models are dynamically loaded/unloaded. Keeping the number of vehicle models below 150 is a good idea. | * (**) Although the vehicle model limit in 0.3 is unlimited, if you use a large amount of vehicle models, you may notice parts of your mode become framey as vehicle models are dynamically loaded/unloaded. Keeping the number of vehicle models below 150 is a good idea. | ||
* (***) Although the textdraw string limit is 1024 characters, if [http://wiki.sa-mp.com/wiki/GameTextStyle#Text_Colors colour codes] (e.g. ~r~) are used beyond the 255th character it may crash the client. | * (***) Although the textdraw string limit is 1024 characters, if [http://wiki.sa-mp.com/wiki/GameTextStyle#Text_Colors colour codes] (e.g. ~r~) are used beyond the 255th character it may crash the client. |
Revision as of 18:00, 16 July 2015
SA:MP has certain limitations, below is a table of most limits that are in SA:MP.
Script Property | 0.3.7 |
---|---|
Players | 1000 |
Vehicles ✝✝ | 2000 |
Vehicle Models | Unlimited ** |
Objects ✝✝ | 1000 |
Virtual Worlds | 2,147,483,647 |
Map Icons ✝✝ | 100 |
Race Checkpoints ✝✝ | 1 |
Checkpoints ✝✝ | 1 |
Pickups ✝✝ | 4096 |
Global 3D Labels ✝✝ | 1024 |
Per-player 3D Text Labels ✝✝ | 1024 |
Chat Bubble String | 144 characters |
Gangzones | 1024 |
Menus | 128 |
Attached player objects | 10 |
Player Variables | 800 |
Actors (since 0.3.7) ✝✝ | 1000 |
Server Property | 0.3.7 |
Gamemodes | 16 |
Filterscripts | 16 |
Text I/O (Chat/Commands) | 128 cells (512 bytes) |
Name Length (SetPlayerName) | 24 characters |
Textdraws | 0.3.7 |
String Length | 1024 characters *** |
Shown In A Single Client's Screen | 2048 + 256 ✝ |
Shown In A Single Client's Screen (sprites) | 100 |
Created Serverwise (Global) | 2048 |
Created Serverwise (Per-Player) | 256 |
Dialogs | 0.3.7 |
Dialog IDs | 32767 |
Info (Main text) | 4096 |
Caption | 64 |
Input Text Box (DIALOG_STYLE_INPUT/PASSWORD) | 128 |
Tab List Columns (DIALOG_STYLE_TABLIST(_HEADERS) | 4 |
Tab List Column Characters (DIALOG_STYLE_TABLIST(_HEADERS) | 128 |
Tab List Row Characters (DIALOG_STYLE_TABLIST(_HEADERS) | 256 |
Notes:
- (**) Although the vehicle model limit in 0.3 is unlimited, if you use a large amount of vehicle models, you may notice parts of your mode become framey as vehicle models are dynamically loaded/unloaded. Keeping the number of vehicle models below 150 is a good idea.
- (***) Although the textdraw string limit is 1024 characters, if colour codes (e.g. ~r~) are used beyond the 255th character it may crash the client.
- (✝) It is possible to show all Textdraws at the same time for one player, however this is not recommended.
- (✝✝) To circumvent these limits, it is possible to use a streamer. Streamers work by only creating the objects/vehicles etc. that are close to players. See here (vehicles and actors not supported, but there are streamers out there for those).