10.07.2014, 01:10
This is one text-draw, easy to make. No one will "steal it".
// Simplified to
// normal array
new Text:Textdraw[63]; // Now use Textdraw[0], Textdraw[1]...
// or char-arrays to save memory as you don\'t require more than 255
new Text:Textdraw[63 char]; // Now use Textdraw{0}, Textdraw{1}...
// Your code
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
new Text:Textdraw6;
new Text:Textdraw7;
new Text:Textdraw8;
new Text:Textdraw9;
new Text:Textdraw10;
new Text:Textdraw11;
new Text:Textdraw12;
new Text:Textdraw13;
new Text:Textdraw14;
new Text:Textdraw15;
new Text:Textdraw16;
new Text:Textdraw17;
new Text:Textdraw18;
new Text:Textdraw19;
new Text:Textdraw20;
new Text:Textdraw21;
new Text:Textdraw22;
new Text:Textdraw23;
new Text:Textdraw24;
new Text:Textdraw25;
new Text:Textdraw26;
new Text:Textdraw27;
new Text:Textdraw28;
new Text:Textdraw29;
new Text:Textdraw30;
new Text:Textdraw31;
new Text:Textdraw32;
new Text:Textdraw33;
new Text:Textdraw34;
new Text:Textdraw35;
new Text:Textdraw36;
new Text:Textdraw37;
new Text:Textdraw38;
new Text:Textdraw39;
new Text:Textdraw40;
new Text:Textdraw41;
new Text:Textdraw42;
new Text:Textdraw43;
new Text:Textdraw44;
new Text:Textdraw45;
new Text:Textdraw46;
new Text:Textdraw47;
new Text:Textdraw48;
new Text:Textdraw49;
new Text:Textdraw50;
new Text:Textdraw51;
new Text:Textdraw52;
new Text:Textdraw53;
new Text:Textdraw54;
new Text:Textdraw55;
new Text:Textdraw56;
new Text:Textdraw57;
new Text:Textdraw58;
new Text:Textdraw59;
new Text:Textdraw60;
new Text:Textdraw61;
new Text:Textdraw62;
new Text:Textdraw63;
// Showing
for (new i = 0; i < 63; i++)
{
TextDrawShowForPlayer(playerid, Text:Textdraw[i]); // use Textdraw{i} if you\'re using char-arrays
}
// Hiding
for (new i = 0; i < 63; i++)
{
TextDrawHideForAll(Text:Textdraw[i]); // use Textdraw{i} if you\'re using char-arrays
}
I almost thought someone made a Flappy Bird minigame with textdraws, but I was wrong.
Some improvement you could do with your code. 1. pawn Code:
2. You don\'t have to hide and destroy the textdraws at the same time. When you will destroy the textdraw, it\'ll most likely hide itself. 3. Instead of writing so many Hide and Show codes, you can simply put a loop (only if you\'ve used arrays) pawn Code:
4. It\'s not something related to improvement but remove the define \'#define FILTERSCRIPT, it\'s useless. |
If you know then why not make it easier on yourself and others? You wasted time you could of saved. Seriously, something isn\'t right about you. Failure to release source, then you ask for member\'s IP address, and not to mention you seem sketchy.
|