Tag Mismatch Warnings - 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 Warnings (
/showthread.php?tid=596919)
Tag Mismatch Warnings -
SupperRobin6394 - 24.12.2015
Hey hey,
Got the warning "warning 213: tag mismatch" and I can't solve it. Here is the code:
PHP код:
COMMAND:robinfix(playerid, params[])
{
if(gTeam[playerid] == TEAM_ROBIN)
{
for(new i = 1, j = GetVehiclePoolSize(); i <= j; i++)
{
if(!VehicleOccupied(RobinCar[i])) // warning 213: tag mismatch
{
SetVehicleToRespawn(RobinCar[i]); // warning 213: tag mismatch
}
}
}
else if(gTeam[playerid] != TEAM_ROBIN)
{
SendClientMessage(playerid, TEAM_ROBIN_COLOR, "This Command is owned by Daan!");
}
return 1;
}
Any idea's or help?
Re: Tag Mismatch Warnings -
FreAkeD - 24.12.2015
Try this:
Код:
COMMAND:robinfix(playerid, params[])
{
if(gTeam[playerid] == TEAM_ROBIN)
{
for(new i = 1, j = GetVehiclePoolSize(); i <= j; i++)
{
if(!VehicleOccupied(RobinCar(i)))
{
SetVehicleToRespawn(RobinCar(i));
}
}
}
else if(gTeam[playerid] != TEAM_ROBIN)
{
SendClientMessage(playerid, TEAM_ROBIN_COLOR, "This Command is owned by Daan!");
}
return 1;
}
Re: Tag Mismatch Warnings -
SupperRobin6394 - 24.12.2015
Line 10089: error 012: invalid function call, not a valid address
Line 10089: warning 215: expression has no effect
Line 10089: error 001: expected token: ";", but found ")"
Line 10089: error 029: invalid expression, assumed zero
Line 10089: fatal error 107: too many error messages on one line
Re: Tag Mismatch Warnings -
Vince - 24.12.2015
RobinCar is not of tag
_: (default, integer) while those functions expect this tag. Hence, tag mismatch. If you are absolutely certain that RobinCar is in fact an integer you may remove its tag by prepending the tag override above.
Re: Tag Mismatch Warnings -
thefirestate - 24.12.2015
Show me how you create the RobinCar variable.
Re: Tag Mismatch Warnings -
Amunra - 24.12.2015
for(new i = 0; j = GetVehiclePoolSize(); i <= j; i++)
Test it , i just try