26.07.2016, 16:50
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:
The line are this:
The variabile is this:
new Float:vhealth[MAX_PLAYERS];
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 213: tag mismatch
C:\Users\Alessandro\Desktop\Starting OFF gamemode\gamemodes\test.pwn(805) : warning 213: tag mismatch
C:\Users\Alessandro\Desktop\Starting OFF gamemode\gamemodes\test.pwn(806) : warning 213: tag mismatch
C:\Users\Alessandro\Desktop\Starting OFF gamemode\gamemodes\test.pwn(807) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Warnings.
PHP код:
if(oldstate == PLAYER_STATE_DRIVER)
{
vhealth[playerid] = INVALID_PLAYER_BAR_VALUE; //Line 800
DestroyPlayerProgressBar(playerid, vhealth[playerid]);
}
if(newstate == PLAYER_STATE_DRIVER)
{
vhealth[playerid] = CreatePlayerProgressBar(playerid, 532.0,200.0, _, _, 0x00FF00FF, 1000.00);c //805
SetPlayerProgressBarValue(playerid, vhealth[playerid], 1000.00);//806
ShowPlayerProgressBar(playerid, vhealth[playerid]);//807
}
new Float:vhealth[MAX_PLAYERS];