Help With Replacing The Pickups with Checkpoints
#1

Hello, Im trying to replace the house's pickup with Checkpoints, I downloaded the last streamer of Incognito

I Type in top of the Script #include <streamer> , put the streamer in plugins folder and the inc file in pawno includes folder , the original Code is this

Код:
for(new h = 0; h < sizeof(HouseInfo); h++)
	{
		if(HouseInfo[h][hOwned] == 0)
		{
            Create3DTextLabel("[Property]",0x00AE00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.75,20.0,0,1);
			HouseInfo[h][hPickupID]=CreatePickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
			pickups++;
		}
		if(HouseInfo[h][hOwned] == 1)
		{
            Create3DTextLabel("[Property]",0x00AE00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.75,20.0,0,1);
			HouseInfo[h][hPickupID]=CreatePickup(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
			pickups++;
		}
	}
I change it with this

Код:
for(new h = 0; h < sizeof(HouseInfo); h++)
	{
		if(HouseInfo[h][hOwned] == 0)
		{
            Create3DTextLabel("[Property]",0x00AE00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.75,20.0,0,1);
			HouseInfo[h][hPickupID]=CreateDynamicCP(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
			pickups++;
		}
		if(HouseInfo[h][hOwned] == 1)
		{
            Create3DTextLabel("[Property]",0x00AE00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.75,20.0,0,1);
			HouseInfo[h][hPickupID]=CreateDynamicCP(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
			pickups++;
		}
	}
But when i compile i get these two warnings
Код:
C:\DOCUME~1\Jaber\Bureau\PR-RPE~1\GAMEMO~1\PS-RP.pwn(6220) : warning 213: tag mismatch
C:\DOCUME~1\Jaber\Bureau\PR-RPE~1\GAMEMO~1\PS-RP.pwn(6226) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          10388 bytes
Code size:          1657632 bytes
Data size:         26364440 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements:28048844 bytes

2 Warnings.
i ignore them and go check the houses , IG , I don't find the Checkpoints, i only see the 3Dlabeltext,

Is there any thing i didn't do or something , im new in scripting
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)