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: Tag Mismatch? (
/showthread.php?tid=492407)
Tag Mismatch? -
Youssef214 - 03.02.2014
pawn Код:
D:\Gta San Andreas Multiplayer\Gta San Andreas Multiplayer\gamemodes\LSGW2.pwn(1395) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
At This:
pawn Код:
if(!tCP[Police] == gTeam[playerid])
{
SendClientMessage(playerid, 0x00FF007A, " You have left the checkpoint , You have failed to capture");
GangZoneStopFlashForAll(Grove);
SendClientMessageToAll(0x00FF007A, "Zone was not taken over");
KillTimer(timer[playerid][Grove]);
Checkpoint[playerid] = 0;
UnderAttack[Grove] = 0;
}
Re: Tag Mismatch? -
Youssef214 - 03.02.2014
anyone here?
Re: Tag Mismatch? -
Vince - 03.02.2014
Geezus, don't bump after just 20 minutes. People here selflessly devote their time to helping others. Not everyone's glued to their PC.
What line is the warning?
Re: Tag Mismatch? -
Youssef214 - 03.02.2014
ok sry,and the problem in: if(!tCP[Police] == gTeam[playerid])
Re: Tag Mismatch? -
Don_Cage - 03.02.2014
if(CP[Police] == gTeam[playerid])
Re: Tag Mismatch? -
Youssef214 - 03.02.2014
actually i have defined tCP in:
and i got these errors:
pawn Код:
D:\Gta San Andreas Multiplayer\Gta San Andreas Multiplayer\gamemodes\LSGW2.pwn(1395) : error 017: undefined symbol "CP"
D:\Gta San Andreas Multiplayer\Gta San Andreas Multiplayer\gamemodes\LSGW2.pwn(1395) : warning 215: expression has no effect
D:\Gta San Andreas Multiplayer\Gta San Andreas Multiplayer\gamemodes\LSGW2.pwn(1395) : error 001: expected token: ";", but found "]"
D:\Gta San Andreas Multiplayer\Gta San Andreas Multiplayer\gamemodes\LSGW2.pwn(1395) : error 029: invalid expression, assumed zero
D:\Gta San Andreas Multiplayer\Gta San Andreas Multiplayer\gamemodes\LSGW2.pwn(1395) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
tCP i made for checking if the player's team has invaded a zone
Re: Tag Mismatch? -
Don_Cage - 03.02.2014
ah then its like this
if(!tCP[Police] == ID) from 0 to 30
Re: Tag Mismatch? -
Youssef214 - 03.02.2014
I Have Solved the Problem By Myself,i defined another variable and i was should use it its the opposite of tCP,anyway thanks