PROGRESS BAR / PAWNO NOT RESPODING
#1

PHP код:
new Bar:sleep[MAX_PLAYERS] = CreateProgressBar(581.00295.0055.503.20, -16776961100.0);
new    
Bar:thirst[MAX_PLAYERS] = CreateProgressBar(580.00267.0055.503.20, -16776961100.0);
new 
Bar:hunger[MAX_PLAYERS] = CreateProgressBar(579.00239.0055.503.20, -16776961100.0); 
PHP код:
        ShowProgressBarForPlayer(playeridsleep[playerid]);
        
ShowProgressBarForPlayer(playeridthirst[playerid]);
        
ShowProgressBarForPlayer(playeridhunger[playerid]);
        
SetProgressBarValue(sleep[playerid], Player[playerid][pBad]);
        
UpdateProgressBar(sleep[playerid], playerid);
        
SetProgressBarValue(thirst[playerid], Player[playerid][pThirst]);
        
UpdateProgressBar(thirst[playerid], playerid);
        
SetProgressBarValue(hunger[playerid], Player[playerid][pHunger]);
        
UpdateProgressBar(hunger[playerid], playerid); 
When i add this script into my gamemode, and when i try to compile pawno is not respoding.... HELP
Reply
#2

BUMP HELP MEEEEE
Reply
#3

How are you including this, and where in your script are you using it?

most likely you are either including the same include twice.
Reply
#4

progressbar.inc
#include <progressbar>
Reply
#5

You cannot insert dynamic values into an array while initializing it.

You'll have to:
pawn Код:
new PlayerBar:sleep[MAX_PLAYERS];

// under OnPlayerConnect
sleep[playerid] = CreatePlayerProgressBar(playerid, 581.00, 295.00, 55.50, 3.20, -16776961, 100.0);
Player progress bars: https://sampforum.blast.hk/showthread.php?tid=537468
Reply
#6

Woow, I completely over looked that.

I should sleep
Reply
#7

PHP код:
D:\1-ADMIN-ar cashaloo\Desktop\DayZ\gamemodes\dayz1.pwn(1915) : error 020invalid symbol name "" 
now i have this error.
PHP код:
new PlayerBar:sleep[MAX_PLAYERS];
new    
PlayerBar:thirst[MAX_PLAYERS];
new 
PlayerBar:hunger[MAX_PLAYERS]; 
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)