if(EventParkour == 1) { foreach(new i : Player) { if(InParkour[i] == 1) { EventParkour = 0; StergeParkour(); } }
if(InParkour[playerid] == 1) { if(Yi < 305.0001) { SCM(playerid,COLOR_LIGHTRED, "Ai cazut,mai incearca!"); OnPlayerCommandText(playerid, "/gotoparkour"); } }
There is no way to know where the mismatch in that code is - you haven't told us what line it is on, and you haven't shown us the declarations of any of the variables (so we don't know the tags involved).
|
C:\SERVER DE SAMP\GameMode\gamemodes\ascardia.pwn(6231) : warning 213: tag mismatch C:\SERVER DE SAMP\GameMode\gamemodes\ascardia.pwn(10648) : warning 213: tag mismatch C:\SERVER DE SAMP\GameMode\gamemodes\ascardia.pwn(32091) : warning 213: tag mismatch C:\SERVER DE SAMP\GameMode\gamemodes\ascardia.pwn(32107) : warning 213: tag mismatch C:\SERVER DE SAMP\GameMode\gamemodes\ascardia.pwn(32111) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 15716 bytes
foreach(new i : Player) { if(InParkour[i] == 1) //<<<<<<<<<< {
GetPlayerPos(playerid,Xi,Yi,Zi); if(InParkour[playerid] == 1) //<<<<<<< { if(Yi < 305.0001)
WaitIntrare(playerid); InParkour[playerid] = 1; //<<<<<<<< GameTextForPlayer(playerid, "~g~Pentru a iesi,foloseste\n~r~/LEAVEPARKOUR", 2000,1);
{ if(InParkour[playerid] == 1) { if(GetPlayerInterior(playerid) != 0) return SCM(playerid, COLOR_FADE1, " Din pacate nu poti folosi aceasta comanda intr-un interior.");
WaitIntrare(playerid); InParkour[playerid] = 0; GameTextForPlayer(playerid, "~g~Ai iesit de la ~n~~g~eveniment.", 2000,1); SPP(playerid, 1543.4669, -1352.6960, 329.7668); SetPlayerInterior(playerid, 0);
If `InParkour` is declared with bool: tag, then you need to use false/true instead of 0/1
|
if(EventParkour == 1) foreach(new i : Player && InParkour[i] == true) EventParkour = 0, StergeParkour();