SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 13/06/2013, 09:40 PM   #1
Skimmer
Huge Clucker
 
Skimmer's Avatar
 
Join Date: Oct 2012
Location: Germany
Posts: 492
Reputation: 56
Default TextDraw increase Limits?

Hello, since 2010 i script this language, but i still have problems on TextDraw Limits.

The first question is if i create a player textdraw for each player doesn't it crash the server after 6 slots?

pawn Code:
new PlayerText:g_Main[MAX_PLAYERS]; // 500 players, but the limit is 256



I always used my own definition called MAX_SLOT and it has the value 25 for 25 slots.

Same about the Global Textdraw.

pawn Code:
new Text:g_Global1[MAX_PLAYERS]; // 500
new Text:g_Global2[MAX_PLAYERS]; // 500
new Text:g_Global3[MAX_PLAYERS]; // 500
new Text:g_Global4[MAX_PLAYERS]; // 500
new Text:g_Global5[MAX_PLAYERS]; // 500

But the limit is 2048.



Why do i ask this? Because i see a lot of servers using more textdraws.
Well, i created my own INCLUDE and it allows to destroy the old textdraw and create the new one and it works fine. But i want know is that possible or not?
Skimmer is offline   Reply With Quote
Old 13/06/2013, 09:42 PM   #2
Vince
Spam Machine
 
Vince's Avatar
 
Join Date: Sep 2007
Location: Belgium
Posts: 10,089
Reputation: 2655
Default Re: TextDraw increase Limits?

256 per player, not 256 global.
__________________
Vince is offline   Reply With Quote
Old 13/06/2013, 09:43 PM   #3
Scenario
Godfather
 
Scenario's Avatar
 
Join Date: Feb 2010
Location: Heaven
Posts: 7,809
Reputation: 701
Default Re: TextDraw increase Limits?

There's a limit of 256 player text draws that can be CREATED at once. There's 2048 global TD's that can be CREATED at once.

You can only show so many at once, though (I think it's like 100 TD's or something). You shouldn't be going over that limit...
Scenario is offline   Reply With Quote
Old 13/06/2013, 09:43 PM   #4
Skimmer
Huge Clucker
 
Skimmer's Avatar
 
Join Date: Oct 2012
Location: Germany
Posts: 492
Reputation: 56
Default AW: Re: TextDraw increase Limits?

Quote:
Originally Posted by Vince View Post
256 per player, not 256 global.
I know this, but MAX_PLAYERS has the value 500 but the limit is 256.
Skimmer is offline   Reply With Quote
Old 13/06/2013, 09:44 PM   #5
Vince
Spam Machine
 
Vince's Avatar
 
Join Date: Sep 2007
Location: Belgium
Posts: 10,089
Reputation: 2655
Default Re: TextDraw increase Limits?

You don't get what I mean. If there are 500 players and each player can have 256 textdraws then you can have a total of 128,000 textdraws.
__________________
Vince is offline   Reply With Quote
Old 13/06/2013, 09:46 PM   #6
Skimmer
Huge Clucker
 
Skimmer's Avatar
 
Join Date: Oct 2012
Location: Germany
Posts: 492
Reputation: 56
Default AW: Re: TextDraw increase Limits?

Quote:
Originally Posted by Vince View Post
You don't get what I mean. If there are 500 players and each player can have 256 textdraws then you can have a total of 128,000 textdraws.
OMG, that's what i wanted to know. Thank you for the information Vince and RealCop228. +REP
Skimmer is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] |Limits| ~~> Speedometer <~~ |Limits| AmericanStyle'™ Lançamentos/Releases 41 11/12/2012 04:39 PM
[FilterScript] |Limits| Rc Battle Command |Limits| MagneticLove- Filterscripts 2 11/03/2012 12:27 AM
give me idea - TextDraw limits KoczkaHUN Help Archive 2 23/05/2011 06:32 AM
Textdraw's limits ... DokerJr Help Archive 1 25/10/2009 09:20 PM
Suggestion: Increase of Server-created Textdraw Meester Proper Help Archive 12 18/10/2009 10:43 AM


All times are GMT. The time now is 09:16 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.