Little textdraw question
#1

About textdraws for players. If I make a textdraw on playerid, (Text:Name[MAX_PLAYERS]; ), how does SA:MP count that?
Because I have 6 textdraws, each for only one player. If SA:MP count each of that textdraws, I can have max 166 players on my server, or am I fault?

BTW:, maybe another question, is it confesses how much texdraws SA:MP 0.3 can have?
Reply
#2

nobody knows?
Reply
#3

Text:name[MAX_PLAYERS] is creating 200 variables.
name[0]=TextDrawCreate is creating a textdraw
TextDrawDestroy(name[0]) is removing a textdraw

The SA-MP server, as it stands, can only create 1024. NOT 1024 per player, but 1024 in total, even if it isn't being shown to a player. It will not increase if SA-MP 0.3 is released, unless it's an after though. (I have asked Kye if it he would increase the textdraw amount to help my pixel script Pixels by Textdraws, he said no)
Reply
#4

Okay, tanks. But I have a solution: Only for the first 150 playerid's can see textdraws. Above, they get a message that the server is too busy to show the textdraws.

But tanks for complaining

And maybe a idea for SA:MP 0.3: TextDrawSetStringForPlayer(playerid, "message");
That would be a great idea for my problem, and I think also for a lot of other servers

Where can i post some ideas for SA:MP 0.3? This would be a seriously good idea I think so
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)