I can't fix this impossible thing[HELP]
#1

I don't see the bar that I have made with Progress Bar. Here is my code

pawn Код:
#define FILTERSCRIPT

#include <a_samp>
#include <progress>


new Bar:Deh;

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    Deh = CreateProgressBar(557.00, 212.00, 55.50, 1.50, 376089275, 100.0);
    ShowProgressBarForAll(Deh);
    return 1;
}
A help will be very very generous
Reply
#2

i have done that but the problem still there
Reply
#3

Try this:
pawn Код:
#define FILTERSCRIPT

#include <a_samp>
#include <progress>


new Bar:Deh;

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    Deh = CreateProgressBar(557.00, 212.00, 55.50, 1.50, 376089275, 100.0);
    return 1;
}

public OnPlayerConnect(playerid)
{
    ShowProgressBarForAll(Deh);
    return 1;
}
Reply
#4

Quote:
Originally Posted by Markx
Посмотреть сообщение
Try this:
pawn Код:
#define FILTERSCRIPT

#include <a_samp>
#include <progress>


new Bar:Deh;

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    Deh = CreateProgressBar(557.00, 212.00, 55.50, 1.50, 376089275, 100.0);
    return 1;
}

public OnPlayerConnect(playerid)
{
    ShowProgressBarForAll(Deh);
    return 1;
}
I have tried your code. But the bar doesn't shows up
Reply
#5

but how is this possible? I can't figure it out

EDIT : Anyone can show me any way of using progress bar include? I need it urgent
Reply
#6

i have asked it but no one is replying
Reply
#7

can anyone give me an example script of the progress bar include
Reply
#8

try this

pawn Код:
#define FILTERSCRIPT

#include <a_samp>
#include <progress>
#include <foreach>


new Bar:Deh[MAX_PLAYERS];

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    foreach(Player, i)
   {
        Deh[i] = CreateProgressBar(557.00, 212.00, 55.50, 1.50, 376089275, 100.0);
   }
   return 1;
}

public OnPlayerConnect(playerid)
{
    return 1;
}

public OnPlayerSpawn(playerid)
{
    ShowProgressBarForAll(Deh[playerid]);
    return 1;
}
Reply
#9

nope it does not work
Reply
#10

so quickly tested. Maybe you need to remove the foreach loop
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)