Problem whit Progress Bar (Tag Mismatch)
#1

Hello I have created a system progress bar to see the health of the vehicle ..
Unfortunately I give me the warning and do not know what they are due .

The warning are this:

PHP код:
C:\Users\Alessandro\Desktop\Starting OFF gamemode\gamemodes\test.pwn(800) : warning 213tag mismatch
C
:\Users\Alessandro\Desktop\Starting OFF gamemode\gamemodes\test.pwn(805) : warning 213tag mismatch
C
:\Users\Alessandro\Desktop\Starting OFF gamemode\gamemodes\test.pwn(806) : warning 213tag mismatch
C
:\Users\Alessandro\Desktop\Starting OFF gamemode\gamemodes\test.pwn(807) : warning 213tag mismatch
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
4 Warnings

The line are this:

PHP код:

if(oldstate == PLAYER_STATE_DRIVER)
    {
        
vhealth[playerid] = INVALID_PLAYER_BAR_VALUE//Line 800
        
DestroyPlayerProgressBar(playeridvhealth[playerid]);
    }
    if(
newstate == PLAYER_STATE_DRIVER)
    {
        
vhealth[playerid] = CreatePlayerProgressBar(playerid532.0,200.0__0x00FF00FF1000.00);//805
        
SetPlayerProgressBarValue(playeridvhealth[playerid], 1000.00);//806
        
ShowPlayerProgressBar(playeridvhealth[playerid]);//807
    

The variabile is this:

new Float:vhealth[MAX_PLAYERS];
Reply
#2

Change new Float:vhealth[MAX_PLAYERS]; to new Float:vhealth;
Reply
#3

Change to:
pawn Код:
new PlayerBar: vhealth[MAX_PLAYERS];
Quote:
Originally Posted by Rockefeller
Посмотреть сообщение
Change new Float:vhealth[MAX_PLAYERS]; to new Float:vhealth;
It has to be an array.
Reply
#4

Oh, Thanks but I have antoher problem..
Why when I log In the server SOME textdraw blink or should be jerky?

Why?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)