tag mismatch problem - 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 problem (
/showthread.php?tid=586272)
tag mismatch problem -
Toxik - 20.08.2015
Error
pawn Код:
C:\Users\CraTzy\Desktop\house.pwn(408) : warning 213: tag mismatch
C:\Users\CraTzy\Desktop\house.pwn(408) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
Code
pawn Код:
dcmd_entersafe(playerid,params[])
{
#pragma unused params
new str1[255],pname[24],housenumber;
housenumber = GetHouseID(playerid);
GetPlayerPos(playerid, shousex, shousey, shousez);
format(str1, sizeof(str1), "SafeHouses/houseid%d", housenumber);
GetPlayerName(playerid, pname, 24);
splayerworld[playerid] = GetPlayerVirtualWorld(playerid);
SendClientMessage(playerid, c_y, "You entered the Safe house!");
SetPlayerVirtualWorld(playerid, shInfo[housenumber][sVirtualworld]);
SetPlayerInterior(playerid, shInfo[housenumber][sInterior]);
SetPlayerPos(playerid, shInfo[housenumber][sInteriorX], hInfo[housenumber][sInteriorY], hInfo[housenumber][sInteriorZ]);
splayerinterior[playerid] = shInfo[housenumber][sInterior];
return 1;
}
Error Line
pawn Код:
SetPlayerPos(playerid, shInfo[housenumber][sInteriorX], hInfo[housenumber][sInteriorY], hInfo[housenumber][sInteriorZ]);
if you need enums or something tell me
Re: tag mismatch problem -
nezo2001 - 20.08.2015
make sure that
sInteriorX,
sInteriorY,
sInteriorZ
Are
PHP код:
Float:sInteriorX,
Float:sInteiorY,
Float:sInteriorZ
In your enum
Re: tag mismatch problem -
Toxik - 20.08.2015
it is but still get error
pawn Код:
enum SafeHouseInfo
{
sInterior,
sVirtualworld,
Float:sInteriorX,
Float:sInteriorY,
Float:sInteriorZ,
Float:siconx,
Float:sicony,
Float:siconz
}
new shInfo[MAX_SAFEHOUSES][SafeHouseInfo]; //shInfo
Re: tag mismatch problem -
Toxik - 20.08.2015
found the error
forgot to ad shInfo
pawn Код:
SetPlayerPos(playerid, shInfo[housenumber][sInteriorX], shInfo[housenumber][sInteriorY], shInfo[housenumber][sInteriorZ]);
anyway thanks