SA-MP Forums Archive
Problem whit Progress Bar (Tag Mismatch) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem whit Progress Bar (Tag Mismatch) (/showthread.php?tid=613327)



Problem whit Progress Bar (Tag Mismatch) - AlexPalermitano97 - 26.07.2016

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];


Re: Problem whit Progress Bar (Tag Mismatch) - Rockefeller - 26.07.2016

Change new Float:vhealth[MAX_PLAYERS]; to new Float:vhealth;


Re: Problem whit Progress Bar (Tag Mismatch) - Konstantinos - 26.07.2016

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.


Re: Problem whit Progress Bar (Tag Mismatch) - AlexPalermitano97 - 26.07.2016

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

Why?