SA-MP Forums Archive
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=633728)



tag mismatch - Loinal - 06.05.2017

PHP код:
stock GotoHouseForPlayer(propidplayerid)
{
    new 
ID propid;
    if(
HouseInfo[ID][HouseExists] == 0
    {
        
SendClientMessage(playerid0xFF0000AA"This house does not exists!");
    } 
    
TogglePlayerControllable(playerid,0);
    
SetPlayerPos(playeridHouseInfo[ID][HouseX], HouseInfo[ID][HouseY], HouseInfo[ID][HouseZ]);
    
SetPlayerInterior(playerid0);
    
SendClientMessage(playerid0xFFFF00"* You have teleported to your house.");
    return 
1;
}
stock SpawnPlayerHome(propidplayerid)
{
    new 
ID propid;
    if(
HouseInfo[ID][HouseExists] == 0) return SendClientMessage(playerid0xFF0000AA"This house does not exists!");
    
TogglePlayerControllable(playerid,0);
    
SetPlayerPos(playeridHouseInfo[ID][HouseX], HouseInfo[ID][HouseY], HouseInfo[ID][HouseZ]);
    
SetPlayerInterior(playerid0);
    return 
1;

Every thing here is giving me tag mismatch


Re: tag mismatch - SyS - 06.05.2017

HouseX,HouseY,HouseZ
should be declared with Float tags.


Re: tag mismatch - Loinal - 06.05.2017

PHP код:
enum houseinfo
{
    
Float:HouseX,
    
Float:HouseY,
    
Float:HouseZ,
    
Float:HouseiX,
    
Float:HouseiY,
    
Float:HouseiZ,
    
Housei,
    
HouseIsBought,
    
HouseExists,
    
HouseOwner[MAX_PLAYER_NAME],
    
HouseValue,
    
HouseLocked,
    
HousePickup,
}
new 
HouseInfo[MAX_HOUSES][houseinfo]; //CarInfo 
It is already


Re: tag mismatch - SyS - 06.05.2017

I just tried your code and it doesn't give me any warning.Double check the line numbers.


Re: tag mismatch - Loinal - 06.05.2017

Quote:
Originally Posted by SyS
Посмотреть сообщение
I just tried your code and it doesn't give me any warning.Double check the line numbers.
Not working for me


Re: tag mismatch - ShihabSoft - 06.05.2017

Add the line numbers from your original source code to the code snippet you've posted. And also, post the server log part, where the tag mismatch error shown, with line numbers.