PDA

View Full Version : Warning help


N0FeaR
04/05/2016, 04:45 PM
I have been trying to figure out what i am doing wrong but cant find out, now i asking you for help.

./includes/callbacks.pwn(6422) : warning 213: tag mismatch
./includes/callbacks.pwn(6422) : warning 213: tag mismatch
./includes/callbacks.pwn(6422) : warning 213: tag mismatch
./includes/callbacks.pwn(6427) : warning 213: tag mismatch
./includes/callbacks.pwn(6427) : warning 213: tag mismatch
./includes/callbacks.pwn(6427) : warning 213: tag mismatch

if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
{
new vehicle = GetPlayerVehicleID(playerid);

if(GetPlayerWeapon(playerid) == 24)
{
SetPlayerArmedWeapon(playerid, 0);
}
if(PlayerInfo[playerid][pBoombox] != 0 || !isnull(PlayerVehicleInfo[vehicle][pvRadio])) line 6422
{
PlayerInfo[playerid][pBoombox] = 0;
StopAudioStreamForPlayer(playerid);
}
if(!isnull(PlayerVehicleInfo[vehicle][pvRadio])) { line 6427
PlayAudioStreamForPlayer(playerid, PlayerVehicleInfo[vehicle][pvRadio]);
}
}

Konstantinos
04/05/2016, 04:48 PM
How did you define pvRadio? It should be an array in the enumerator without any tag.

Ritzy2K
04/05/2016, 04:49 PM
You sure that. pvradio is a string?

N0FeaR
04/05/2016, 05:41 PM
Yes pvradio is a string

pvRadio[200]

Ritzy2K
04/05/2016, 05:46 PM
Also it's in your PlayerVehicleInfo enum?

N0FeaR
04/05/2016, 05:52 PM
xXZeusXx.;3694939']Also it's in your PlayerVehicleInfo enum?

Yes.

Ritzy2K
04/05/2016, 06:07 PM
Sorry lol I can't figure out what's wrong, I once used strcmp to check if the string is empty you can try that once though.