05.06.2007, 09:03
I placed the following code into OnPlayerConnect().
It creates only 64 text blocks and only for the first connected player, thus 64 seems to be the SERVER's limit. If so, it's extremely bad. Even if making some "streaming" for TextDraws, there are too few of them available. It would be great, if the limit of 96\64 were per player, or if the server's limit were raised up to about 1024.
Code:
for(new i = 0; i < 9; i++) { for(new j = 0; j < 10; j++) { new Float:x = 10.0 + 40.0 * j; new Float:y = 310.0 + 7.0 * i; new index = i * 10 + j; new s[24]; format(s, sizeof(s), "%d", index); new Text:txt = TextDrawCreate(x, y, s); TextDrawFont(txt, 1); TextDrawColor(txt, 0x003300FF); TextDrawSetShadow(txt, 0); TextDrawShowForPlayer(playerid, txt); gPlayerTexts[playerid][index] = txt; } } //texts are destroyed in OnPlayerDisconnect(), but it's not important here.