error on making 3D Text
#1

as the tittle say , i got error / warning on make that.
Firstly i want to make a CMD to adding Text on Taxi Car


Код:
//On TOP
new Text3D:taxifull[MAX_VEHICLES],taxiempty[MAX_VEHICLES],taxid;
and this the CMD for it
Код:
CMD:toff(playerid, params[])
{
	if(PlayerInfo[playerid][pJob] == 17 || PlayerInfo[playerid][pJob2] == 17 || PlayerInfo[playerid][pTaxiLicense] == 1)
	{
		new newcar = GetPlayerVehicleID(playerid);
    	if(IsAnTaxi(newcar))
		{
			if(GetPlayerState(playerid) == 2)
			{
		    	Delete3DTextLabel(taxiempty[taxid]);
		    	Delete3DTextLabel(taxifull[taxid]);
		    	SendClientMessageEx(playerid, COLOR_WHITE, "You have succesfully turn off Taxi Indicator.");
			}
			else
			{
				SendClientMessageEx(playerid, COLOR_GREY, "   You are not the driver!");
				return 1;
			}
		}
		else
		{
			SendClientMessageEx(playerid, COLOR_GREY, "   You are not in the Taxi!");
			return 1;
		}
	}
	else
	{
		SendClientMessageEx(playerid,COLOR_GREY,"You're not a licensed taxi/bus driver!");
		return 1;
	}
	return 1;
}

CMD:tfull(playerid, params[])
{
	if(PlayerInfo[playerid][pJob] == 17 || PlayerInfo[playerid][pJob2] == 17 || PlayerInfo[playerid][pTaxiLicense] == 1)
	{
	    new newcar = GetPlayerVehicleID(playerid);
    	if(IsAnTaxi(newcar))
		{
			if(GetPlayerState(playerid) == 2)
			{
			    taxid = GetPlayerVehicleID(playerid);
			    taxifull[taxid] = Create3DTextLabel("[•TAXI FULL•]", COLOR_YELLOW, 0.0, 0.0, 0.0, 15.0, 0, 0 );
			    Attach3DTextLabelToVehicle( taxifull[taxid], taxid, 0.0, 0.0, 1.0);
    			Delete3DTextLabel( taxiempty[taxid] );
			}
			else
			{
				SendClientMessageEx(playerid, COLOR_GREY, "   You are not the driver!");
				return 1;
			}
		}
		else
		{
			SendClientMessageEx(playerid, COLOR_GREY, "   You are not in the Taxi!");
			return 1;
		}
	}
	else
	{
		SendClientMessageEx(playerid,COLOR_GREY,"You're not a licensed taxi/bus driver!");
		return 1;
	}
	return 1;
}

CMD:tempty(playerid, params[])
{
	if(PlayerInfo[playerid][pJob] == 17 || PlayerInfo[playerid][pJob2] == 17 || PlayerInfo[playerid][pTaxiLicense] == 1)
	{
	    new newcar = GetPlayerVehicleID(playerid);
    	if(IsAnTaxi(newcar))
		{
			if(GetPlayerState(playerid) == 2)
			{
			    taxid = GetPlayerVehicleID(playerid);
			    taxiempty[taxid] = Create3DTextLabel("[•TAXI EMPTY•]", COLOR_YELLOW, 0.0, 0.0, 0.0, 15.0, 0, 0 );
			    Attach3DTextLabelToVehicle( taxiempty[taxid], taxid, 0.0, 0.0, 1.0);
			    Delete3DTextLabel( taxifull[taxid] );
			}
			else
			{
				SendClientMessageEx(playerid, COLOR_GREY, "   You are not the driver!");
				return 1;
			}
		}
		else
		{
			SendClientMessageEx(playerid, COLOR_GREY, "   You are not in the Taxi!");
			return 1;
		}
	}
	else
	{
		SendClientMessageEx(playerid,COLOR_GREY,"You're not a licensed taxi/bus driver!");
		return 1;
	}
	return 1;
}
and i got warning message like this
Код:
D:\Server\LARP.pwn(68634) : warning 213: tag mismatch
D:\Server\LARP.pwn(68635) : warning 213: tag mismatch
D:\Server\LARP.pwn(68668) : warning 213: tag mismatch
D:\Server\LARP.pwn(68669) : warning 213: tag mismatch
D:\Server\LARP.pwn(68670) : warning 213: tag mismatch
D:\Server\LARP.pwn(68702) : warning 213: tag mismatch
D:\Server\LARP.pwn(68703) : warning 213: tag mismatch
D:\Server\LARP.pwn(68704) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Warnings.
How to fix it ? any way to fix ? or it must got that warning if i want to make that Code ?
Reply
#2

Show me these lines.
Reply
#3

Quote:
Originally Posted by HardRock
Посмотреть сообщение
Show me these lines.
This

Код:
CMD:toff(playerid, params[])
{
	if(PlayerInfo[playerid][pJob] == 17 || PlayerInfo[playerid][pJob2] == 17 || PlayerInfo[playerid][pTaxiLicense] == 1)
	{
		new newcar = GetPlayerVehicleID(playerid);
    	if(IsAnTaxi(newcar)) // This Line 68634
		{ // This Line 68635
			if(GetPlayerState(playerid) == 2)
			{
		    	Delete3DTextLabel(taxiempty[taxid]);
		    	Delete3DTextLabel(taxifull[taxid]);
		    	SendClientMessageEx(playerid, COLOR_WHITE, "You have succesfully turn off Taxi Indicator.");
			}
			else
			{
				SendClientMessageEx(playerid, COLOR_GREY, "   You are not the driver!");
				return 1;
			}
		}
		else
		{
			SendClientMessageEx(playerid, COLOR_GREY, "   You are not in the Taxi!");
			return 1;
		}
	}
	else
	{
		SendClientMessageEx(playerid,COLOR_GREY,"You're not a licensed taxi/bus driver!");
		return 1;
	}
	return 1;
}

CMD:tfull(playerid, params[])
{
	if(PlayerInfo[playerid][pJob] == 17 || PlayerInfo[playerid][pJob2] == 17 || PlayerInfo[playerid][pTaxiLicense] == 1)
	{
	    new newcar = GetPlayerVehicleID(playerid);
    	if(IsAnTaxi(newcar))
		{ // This Line 68668
			if(GetPlayerState(playerid) == 2) // This Line 68669
			{ // This Line 68670
			    taxid = GetPlayerVehicleID(playerid);
			    taxifull[taxid] = Create3DTextLabel("[•TAXI FULL•]", COLOR_YELLOW, 0.0, 0.0, 0.0, 15.0, 0, 0 );
			    Attach3DTextLabelToVehicle( taxifull[taxid], taxid, 0.0, 0.0, 1.0);
    			Delete3DTextLabel( taxiempty[taxid] );
			}
			else
			{
				SendClientMessageEx(playerid, COLOR_GREY, "   You are not the driver!");
				return 1;
			}
		}
		else
		{
			SendClientMessageEx(playerid, COLOR_GREY, "   You are not in the Taxi!");
			return 1;
		}
	}
	else
	{
		SendClientMessageEx(playerid,COLOR_GREY,"You're not a licensed taxi/bus driver!");
		return 1;
	}
	return 1;
}

CMD:tempty(playerid, params[])
{
	if(PlayerInfo[playerid][pJob] == 17 || PlayerInfo[playerid][pJob2] == 17 || PlayerInfo[playerid][pTaxiLicense] == 1)
	{
	    new newcar = GetPlayerVehicleID(playerid);
    	if(IsAnTaxi(newcar))
		{ //This Line 68702
			if(GetPlayerState(playerid) == 2) // This Line 68703
			{ // This Line 68704
			    taxid = GetPlayerVehicleID(playerid);
			    taxiempty[taxid] = Create3DTextLabel("[•TAXI EMPTY•]", COLOR_YELLOW, 0.0, 0.0, 0.0, 15.0, 0, 0 );
			    Attach3DTextLabelToVehicle( taxiempty[taxid], taxid, 0.0, 0.0, 1.0);
			    Delete3DTextLabel( taxifull[taxid] );
			}
			else
			{
				SendClientMessageEx(playerid, COLOR_GREY, "   You are not the driver!");
				return 1;
			}
		}
		else
		{
			SendClientMessageEx(playerid, COLOR_GREY, "   You are not in the Taxi!");
			return 1;
		}
	}
	else
	{
		SendClientMessageEx(playerid,COLOR_GREY,"You're not a licensed taxi/bus driver!");
		return 1;
	}
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)