Warning help - 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: Warning help (
/showthread.php?tid=606455)
Warning help -
N0FeaR - 04.05.2016
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
PHP код:
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]);
}
}
Re: Warning help -
Konstantinos - 04.05.2016
How did you define
pvRadio? It should be an array in the enumerator without any tag.
Re: Warning help -
Ritzy2K - 04.05.2016
You sure that. pvradio is a string?
Re: Warning help -
N0FeaR - 04.05.2016
Yes pvradio is a string
Re: Warning help -
Ritzy2K - 04.05.2016
Also it's in your PlayerVehicleInfo enum?
Re: Warning help -
N0FeaR - 04.05.2016
Quote:
Originally Posted by [ND]xXZeusXx.
Also it's in your PlayerVehicleInfo enum?
|
Yes.
Re: Warning help -
Ritzy2K - 04.05.2016
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.