[FilterScript] Flappy Bird [Textdraw]
#21

This is one text-draw, easy to make. No one will "steal it".
Reply
#22

Nicely done though.
Reply
#23

Quote:
Originally Posted by Abagail
View Post
This is one text-draw, easy to make. No one will "steal it".
Oh wait so it\'s so easy? I am wondering why you didn\'t make it, if you want to put a feedback on a topic there\'s no need to follow what others said and copy-cat what they said, give your opinion not other\'s, and if you think it\'s easy then there\'s no need to post here since it\'s easy.
Reply
#24

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:
// 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;


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:
// 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
}


4. It\'s not something related to improvement but remove the define \'#define FILTERSCRIPT, it\'s useless.
Reply
#25

Quote:
Originally Posted by iZN
View Post
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:
// 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;


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:
// 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
}


4. It\'s not something related to improvement but remove the define \'#define FILTERSCRIPT, it\'s useless.
I know, but who cares?
Reply
#26

Quote:
Originally Posted by MrWupiazZzLT
View Post
I know, but who cares?
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.

Reply
#27

Quote:
Originally Posted by Akira297
View Post
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.
Really?

http://www.part.lt/perziura/7e882429...b1fa2e8422.png Nothing bad just image from Samp Forum
Reply
#28

Good Work Dude....
Reply
#29

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)