help for new Float:Vidus[][]=
#1

I have warnings
Код:
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(41) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(42) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(43) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(44) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(45) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(46) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(47) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(48) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(49) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(50) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(51) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(52) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(53) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(54) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(55) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(56) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(57) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(58) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(59) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(60) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(61) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(62) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(63) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(64) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(65) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(66) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(67) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\filterscripts\S_House.pwn(68) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
"new":

Код:
new Float:Vidus[28][4]=
{
	{2, 2468.8271, -1698.2668, 1013.5078},
	{3, 2496.2593, -1692.0865, 1014.7422},
	{10, 422.5367, 2536.7537, 10.0000},
	{5, 2233.8870, -1115.2548, 1050.8828},
	{9, 2317.8438, -1026.7583, 1050.2178},
	{10, 2259.3994, -1136.0077, 1050.6403},
	{3, 235.2875, 1186.6874, 1080.2578},
	{2, 226.5502, 1239.8220, 1082.1406},
	{1, 223.0643, 1287.0759, 1082.1406},
	{5, 226.3399, 1114.5853, 1080.9932},
	{15, 294.7662, 1472.2924, 1080.2578},
	{2, 446.9182, 1397.0802, 1084.3047},
	{4, 260.7630, 1284.3059, 1080.2578},
	{10, 24.0410, 1340.2130, 1084.3750},
	{4, 221.6445, 1140.2046, 1082.6094},
	{12, 2324.5093, -1149.5398, 1050.7101},
	{4, -260.4874, 1456.6351, 1084.3672},
	{5, 22.2854, 1403.3307, 1084.4370},
	{5, 140.1586, 1365.9368, 1083.8594},
	{6, 234.0523, 1063.9004, 1084.2120},
	{6, -69.0835, 1351.1987, 1080.2109},
	{15, -283.4452, 1471.0026, 1084.3750},
	{1, 2218.1326, -1075.8087, 1050.4844},
	{2, 2237.4080, -1081.6323, 1049.0234},
	{8, 2365.2476, -1135.5605, 1050.8826},
	{8, -42.5004, 1405.4760, 1084.4297},
	{9, 83.0256, 1322.2861, 1083.8662},
	{9, 260.8129, 1237.4207, 1084.2578}
};
Код:
{InteriorID, InteriorX, InteriorY, InteriorZ}
I use it in House save:

Код:
    S_House[houseid][Interior] = Vidus[random(sizeof(Vidus))][0];
    S_House[houseid][InteriorPosX] = Vidus[random(sizeof(Vidus))][1];
	S_House[houseid][InteriorPosY] = Vidus[random(sizeof(Vidus))][2];
	S_House[houseid][InteriorPosZ] = Vidus[random(sizeof(Vidus))][3];
PLZ HELP
Reply
#2

pawn Код:
enum eVidus
{
    InteriorID,
    Float:InteriorX,
    Float:InteriorY,
    Float:InteriorZ
}

new Vidus[28][eVidus]=
{
    {2, 2468.8271, -1698.2668, 1013.5078},
    {3, 2496.2593, -1692.0865, 1014.7422},
    {10, 422.5367, 2536.7537, 10.0000},
...
pawn Код:
S_House[houseid][Interior] = Vidus[random(sizeof(Vidus))][InteriorID];
S_House[houseid][InteriorPosX] = Vidus[random(sizeof(Vidus))][InteriorX];
S_House[houseid][InteriorPosY] = Vidus[random(sizeof(Vidus))][InteriorY];
S_House[houseid][InteriorPosZ] = Vidus[random(sizeof(Vidus))][InteriorZ];
Reply
#3

thanks but now:

Код:
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\pawno\include\S_House.inc(7) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\pawno\include\S_House.inc(7) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\pawno\include\S_House.inc(8) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\pawno\include\S_House.inc(9) : warning 213: tag mismatch
C:\Documents and Settings\Vartotojas\Desktop\Lithuanian FreeRoam\pawno\include\S_House.inc(10) : warning 213: tag mismatch
7-33(All function):

Код:
CreateHouse(houseid, price, Float:X, Float:Y, Float:Z)
{
    S_House[houseid][Kaina] = price;
	S_HousePickup[houseid] = CreatePickup(1273, 2, X, Y, Z, -1);
	format(label, 250, "Namo numeris: {0099FF}%i\n{FFFFFF}Kaina: {0099FF}%i", houseid, S_House[houseid][Kaina]);
	S_House[houseid][Namas] = Create3DTextLabel(label, 0xFFFFFFFF, X, Y, Z+2, 50.0, 0);
    S_House[houseid][Interior] = Vidus[random(sizeof(Vidus))][InteriorID];
    S_House[houseid][InteriorPosX] = Vidus[random(sizeof(Vidus))][InteriorX];
	S_House[houseid][InteriorPosY] = Vidus[random(sizeof(Vidus))][InteriorY];
	S_House[houseid][InteriorPosZ] = Vidus[random(sizeof(Vidus))][InteriorZ];
	S_House[houseid][Nupirktas] = 0;
	new HouseFile[250];
	format(HouseFile, 250, "Houses/%i", houseid);
	if(!dini_Exists(HouseFile))
	{
		dini_Create(HouseFile);
		dini_Set(HouseFile, "Nupirktas", S_House[houseid][Nupirktas]);
		dini_IntSet(HouseFile, "Price", S_House[houseid][Kaina]);
		dini_IntSet(HouseFile, "Interior", S_House[houseid][Interior]);
		dini_FloatSet(HouseFile, "PosX", X);
		dini_FloatSet(HouseFile, "PosY", Y);
		dini_FloatSet(HouseFile, "PosZ", Z);
		dini_FloatSet(HouseFile, "InteriorPosX", S_House[houseid][InteriorPosX]);
		dini_FloatSet(HouseFile, "InteriorPosY", S_House[houseid][InteriorPosY]);
		dini_FloatSet(HouseFile, "InteriorPosZ", S_House[houseid][InteriorPosZ]);
	}
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)