[FilterScript] Simple /updates command
#1

......
Reply
#2

very simple! gj!
Reply
#3

Quote:
Originally Posted by DeathFire
Посмотреть сообщение
very simple! gj!
I bet that you didn't even check it !

ONTOPIC:
  • On line 17 you are missing one more / to make it comment or it will report it as error
  • /updates is not 10 characters long
  • why do you define soo many colors when you use only one ?
  • you didn't say anything about those includes dini utils zones yom_buttons streamer cuff foreach SII *******
  • remove code that you don't use
  • it's easy to be many and is already release many times
Reply
#4

It's a simple script, but I prefer to do it this way:

pawn Код:
static const gUpdateArray[][] =
{
    { "Update 1" },
    { "Update 2" },
    { "Update 3" },
    { "Update 4" },
    { "Update 5" }
};

CMD:updates( playerid, params[] ) {

    SendClientMessage( playerid, 0xFFFF00FF, "Updates:" );
   
    for ( new i = 0; i < sizeof( gUpdateArray ); i ++) {
        SendClientMessage( playerid, 0xFFFFFFFF, gUpdateArray[ i ] );
    }
    return 1;
}
Reply
#5

Quote:
Originally Posted by doreto
Посмотреть сообщение
I bet that you didn't even check it !

ONTOPIC:
  • On line 17 you are missing one more / to make it comment or it will report it as error
  • /updates is not 10 characters long
  • why do you define soo many colors when you use only one ?
  • you didn't say anything about those includes dini utils zones yom_buttons streamer cuff foreach SII *******
  • remove code that you don't use
  • it's easy to be many and is already release many times
Like a said i have had it for a while and yes i realise its been released times before but yet when someone needs something like this they have to look pretty far for it. This is just to help out the new server starters that dont know things like this.
Also i cant remember why i included all of those color's maybe i was going to do it so updates could be different colors..
Reply
#6

Very Simple Script, But Good Job Keep It On.. Nice Script
Reply
#7

What is this? is this a command with SCM or dialog?
Reply
#8

Quote:
Originally Posted by Emmet_
Посмотреть сообщение
It's a simple script, but I prefer to do it this way:

pawn Код:
static const gUpdateArray[][] =
{
    { "Update 1" },
    { "Update 2" },
    { "Update 3" },
    { "Update 4" },
    { "Update 5" }
};

CMD:updates( playerid, params[] ) {

    SendClientMessage( playerid, 0xFFFF00FF, "Updates:" );
   
    for ( new i = 0; i < sizeof( gUpdateArray ); i ++) {
        SendClientMessage( playerid, 0xFFFFFFFF, gUpdateArray[ i ] );
    }
    return 1;
}
Hey, thanks , thats useful
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)