PDA

View Full Version : tag mismatch ?


FizzyWalshy
08/07/2017, 02:45 AM
C:\Users\p\Desktop\Roleplay\gamemodes\Beta.pwn(697 70) : warning 213: tag mismatch
C:\Users\p\Desktop\Roleplay\gamemodes\Beta.pwn(697 70) : warning 213: tag mismatch
C:\Users\p\Desktop\Roleplay\gamemodes\Beta.pwn(697 70) : warning 213: tag mismatch
C:\Users\p\Desktop\Roleplay\gamemodes\Beta.pwn(697 71) : warning 213: tag mismatch
C:\Users\p\Desktop\Roleplay\gamemodes\Beta.pwn(697 71) : warning 213: tag mismatch
C:\Users\p\Desktop\Roleplay\gamemodes\Beta.pwn(697 71) : warning 213: tag mismatch

for(new i = 0; i < MAX_LANDS; i++)
{
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
if(IsPlayerInGangZone(LandInfo[i][landZone]))
{
for(new x = 0; x < 251; x ++)
{
new Positions[3], Rotations[3];
if(IsValidDynamicObject(LandInfo[i][landObjects][x]))
{
GetDynamicObjectPos(LandInfo[i][landObjects][x], Positions[0], Positions[1], Positions[2]);
GetDynamicObjectRot(LandInfo[i][landObjects][x], Rotations[0], Rotations[1], Rotations[2]);
if(IsPlayerInRangeOfPoint(playerid, Positions[0], Positions[1], Positions[2], 6.0))
{
if(objectInfo[x][oDoor] == 1)
{
if(strcmp(playername, LandInfo[i][landOwner], true) == 0 || PlayerInfo[playerid][pLandPerms] >= 1 && PlayerInfo[playerid][pEditLand] == i || TempLandPerm[playerid] == i)
{
if(objectInfo[x][oDoorOpen] == 0)
{
SetDynamicObjectRot(LandInfo[i][landObjects][x], Rotations[0], 90.0, Rotations[2]);
objectInfo[x][oDoorOpen] = 0;
}
else
{
SetDynamicObjectRot(LandInfo[i][landObjects][x], objectInfo[x][oRotX], objectInfo[x][oRotY], objectInfo[x][oRotZ]);
objectInfo[x][oDoorOpen] = 1;
}
}
else SendClientMessage(playerid, COLOR_GREY, "You do not own this land or have permission to open this door");
}
else if(objectInfo[x][oDoor] == 2)
{
if(strcmp(playername, LandInfo[i][landOwner], true) == 0 || PlayerInfo[playerid][pLandPerms] >= 1 && PlayerInfo[playerid][pEditLand] == i || TempLandPerm[playerid] == i)
{
if(objectInfo[x][oDoorOpen] == 0)
{
MoveDynamicObject(LandInfo[i][landObjects][x], Positions[0], Positions[1], Positions[2]+3, 50.0, Rotations[0], Rotations[1], 90.0);
objectInfo[x][oDoorOpen] = 0;
}
else
{
MoveDynamicObject(LandInfo[i][landObjects][x], objectInfo[x][oPosX], objectInfo[x][oPosY], objectInfo[x][oPosZ], 50.0, objectInfo[x][oRotX], objectInfo[x][oRotY], objectInfo[x][oRotZ]);
objectInfo[x][oDoorOpen] = 1;
}
}
else SendClientMessage(playerid, COLOR_GREY, "You do not own this land or have permission to open this door.");
}
}
}
}
}
}
// END OF LAND DOORS!
}
return 1;
}

LINE 69770 GetDynamicObjectPos(LandInfo[i][landObjects][x], Positions[0], Positions[1], Positions[2]);

LINE 69771 GetDynamicObjectRot(LandInfo[i][landObjects][x], Rotations[0], Rotations[1], Rotations[2]);

Meller
08/07/2017, 02:47 AM
new Float:Positions[3], Float:Rotations[3];

Coordinates are decimals/floats.