Limits
From SA-MP Wiki
(Difference between revisions)
Revision as of 11:48, 1 May 2015 MP2 (Talk | contribs) ← Previous diff |
Revision as of 17:59, 16 July 2015 Dugi (Talk | contribs) (removed info about obsolete version, only info about the latest version is needed here) Next diff → |
||
Line 1: | Line 1: | ||
- | SA:MP has limits for many things. Below is a table of most limits that are in SA:MP. | + | SA:MP has certain limitations, below is a table of most limits that are in SA:MP. |
- | + | ||
- | As new versions are released, limits change, and some old versions' limits have been preserved for comparison or if you are still using old versions. | + | |
{| class="wikitable" | {| class="wikitable" | ||
Line 7: | Line 5: | ||
! Script Property | ! Script Property | ||
! 0.3.7 | ! 0.3.7 | ||
- | ! 0.2X | + | |
|- | |- | ||
| Players | | Players | ||
| 1000 | | 1000 | ||
- | | 200 | + | x |
|- | |- | ||
| [[CreateVehicle|Vehicles]] ✝✝ | | [[CreateVehicle|Vehicles]] ✝✝ | ||
| 2000 | | 2000 | ||
- | | 700 | + | x |
|- | |- | ||
| [[GetVehicleModel|Vehicle Models]] | | [[GetVehicleModel|Vehicle Models]] | ||
| Unlimited ** | | Unlimited ** | ||
- | | 127 | + | |
|- | |- | ||
| [[CreateObject|Objects]] ✝✝ | | [[CreateObject|Objects]] ✝✝ | ||
| 1000 | | 1000 | ||
- | | 150-250 | + | |
|- | |- | ||
| [[SetPlayerVirtualWorld|Virtual Worlds]] | | [[SetPlayerVirtualWorld|Virtual Worlds]] | ||
| 2,147,483,647 | | 2,147,483,647 | ||
- | | 256 | + | |
|- | |- | ||
| [[SetPlayerMapIcon|Map Icons]] ✝✝ | | [[SetPlayerMapIcon|Map Icons]] ✝✝ | ||
| 100 | | 100 | ||
- | | 32 | + | |
|- | |- | ||
| [[SetPlayerRaceCheckpoint|Race Checkpoints]] ✝✝ | | [[SetPlayerRaceCheckpoint|Race Checkpoints]] ✝✝ | ||
| 1 | | 1 | ||
- | | 1 | + | |
|- | |- | ||
| [[SetPlayerCheckpoint|Checkpoints]] ✝✝ | | [[SetPlayerCheckpoint|Checkpoints]] ✝✝ | ||
- | | 1 | ||
| 1 | | 1 | ||
|- | |- | ||
| [[CreatePickup|Pickups]] ✝✝ | | [[CreatePickup|Pickups]] ✝✝ | ||
| 4096 | | 4096 | ||
- | | 400 | + | |
|- | |- | ||
| [[Create3DTextLabel|Global 3D Labels]] ✝✝ | | [[Create3DTextLabel|Global 3D Labels]] ✝✝ | ||
| 1024 | | 1024 | ||
- | | N/A | + | |
|- | |- | ||
| [[CreatePlayer3DTextLabel|Per-player 3D Text Labels]] ✝✝ | | [[CreatePlayer3DTextLabel|Per-player 3D Text Labels]] ✝✝ | ||
| 1024 | | 1024 | ||
- | | N/A | + | |
|- | |- | ||
| [[SetPlayerChatBubble|Chat Bubble String]] | | [[SetPlayerChatBubble|Chat Bubble String]] | ||
| 144 characters | | 144 characters | ||
- | | N/A | + | |
|- | |- | ||
| [[GangZoneCreate|Gangzones]] | | [[GangZoneCreate|Gangzones]] | ||
| 1024 | | 1024 | ||
- | | 1024 | + | |
|- | |- | ||
| [[CreateMenu|Menus]] | | [[CreateMenu|Menus]] | ||
| 128 | | 128 | ||
- | | 128 | + | |
|- | |- | ||
| [[SetPlayerAttachedObject|Attached player objects]] | | [[SetPlayerAttachedObject|Attached player objects]] | ||
| 10 | | 10 | ||
- | | N/A | + | |
|- | |- | ||
| [[SetPVarInt|Player Variables]] | | [[SetPVarInt|Player Variables]] | ||
| 800 | | 800 | ||
- | | N/A | + | |
|- | |- | ||
| [[CreateActor|Actors]] (since 0.3.7) ✝✝ | | [[CreateActor|Actors]] (since 0.3.7) ✝✝ | ||
| 1000 | | 1000 | ||
- | | N/A | + | |
|- | |- | ||
Line 81: | Line 78: | ||
! Server Property | ! Server Property | ||
! 0.3.7 | ! 0.3.7 | ||
- | ! 0.2X | + | |
|- | |- | ||
| Gamemodes | | Gamemodes | ||
| 16 | | 16 | ||
- | | 16 | + | |
|- | |- | ||
| Filterscripts | | Filterscripts | ||
| 16 | | 16 | ||
- | | 16 | + | |
|- | |- | ||
| Text I/O (Chat/Commands) | | Text I/O (Chat/Commands) | ||
| 128 cells (512 bytes) | | 128 cells (512 bytes) | ||
- | | 128 cells (512 bytes) | + | |
|- | |- | ||
| Name Length ([[SetPlayerName]]) | | Name Length ([[SetPlayerName]]) | ||
| 24 characters | | 24 characters | ||
- | | 16 characters | + | |
|- | |- | ||
! [[TextDrawCreate|Textdraws]] | ! [[TextDrawCreate|Textdraws]] | ||
! 0.3.7 | ! 0.3.7 | ||
- | ! 0.2X | + | |
|- | |- | ||
| String Length | | String Length | ||
| 1024 characters *** | | 1024 characters *** | ||
- | | 256 characters | + | |
|- | |- | ||
| Shown In A Single Client's Screen | | Shown In A Single Client's Screen | ||
| 2048 + 256 ✝ | | 2048 + 256 ✝ | ||
- | | 92 | + | |
|- | |- | ||
| Shown In A Single Client's Screen (sprites) | | Shown In A Single Client's Screen (sprites) | ||
| 100 | | 100 | ||
- | | N/A | + | |
|- | |- | ||
| Created Serverwise ([[TextDrawCreate|Global]]) | | Created Serverwise ([[TextDrawCreate|Global]]) | ||
| 2048 | | 2048 | ||
- | | 1024 | + | |
|- | |- | ||
| Created Serverwise ([[CreatePlayerTextDraw|Per-Player]]) | | Created Serverwise ([[CreatePlayerTextDraw|Per-Player]]) | ||
| 256 | | 256 | ||
- | | N/A | + | |
|- | |- | ||
! [[ShowPlayerDialog|Dialogs]] | ! [[ShowPlayerDialog|Dialogs]] | ||
! 0.3.7 | ! 0.3.7 | ||
- | ! 0.2X | + | |
|- | |- | ||
| [[ShowPlayerDialog|Dialog IDs]] | | [[ShowPlayerDialog|Dialog IDs]] | ||
| 32767 | | 32767 | ||
- | | N/A | + | |
|- | |- | ||
| Info (Main text) | | Info (Main text) | ||
| 4096 | | 4096 | ||
- | | N/A | + | |
|- | |- | ||
| Caption | | Caption | ||
| 64 | | 64 | ||
- | | N/A | + | |
|- | |- | ||
| Input Text Box (DIALOG_STYLE_INPUT/PASSWORD) | | Input Text Box (DIALOG_STYLE_INPUT/PASSWORD) | ||
| 128 | | 128 | ||
- | | N/A | + | |
|- | |- | ||
| Tab List Columns (DIALOG_STYLE_TABLIST(_HEADERS) | | Tab List Columns (DIALOG_STYLE_TABLIST(_HEADERS) | ||
| 4 | | 4 | ||
- | | N/A | + | |
|- | |- | ||
| Tab List Column Characters (DIALOG_STYLE_TABLIST(_HEADERS) | | Tab List Column Characters (DIALOG_STYLE_TABLIST(_HEADERS) | ||
| 128 | | 128 | ||
- | | N/A | + | |
|- | |- | ||
| Tab List Row Characters (DIALOG_STYLE_TABLIST(_HEADERS) | | Tab List Row Characters (DIALOG_STYLE_TABLIST(_HEADERS) | ||
| 256 | | 256 | ||
- | | N/A | + | |
|} | |} | ||
Revision as of 17:59, 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
x |
Vehicles ✝✝ | 2000
x |
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:
- (*) There is an optional 800 player slot version (since SA-MP 0.3d R2) and a 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 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).