Help With Replacing The Pickups with Checkpoints -
Jaber_Brown - 21.01.2012
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
Re : Help With Replacing The Pickups with Checkpoints -
Jaber_Brown - 21.01.2012
Any one can help me ?
Re : Help With Replacing The Pickups with Checkpoints -
Jaber_Brown - 21.01.2012
Cmon guys , Help me ..
AW: Help With Replacing The Pickups with Checkpoints -
Drebin - 21.01.2012
pawn Код:
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(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], -1, -1, -1, -1, 100.0);
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(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], -1, -1, -1, -1, 100.0);
pickups++;
}
}
CreateDynamicPickup(); and CreateDynamicCP(); have different paramters:
pawn Код:
CreateDynamicPickup(modelid, type, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
Re : Help With Replacing The Pickups with Checkpoints -
Jaber_Brown - 21.01.2012
That's what i exactly do, you gave the same code ..
AW: Help With Replacing The Pickups with Checkpoints -
Drebin - 21.01.2012
No it's not.
Your CreateDynamicCP:
pawn Код:
CreateDynamicCP(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
My CreateDynamicCP:
pawn Код:
CreateDynamicCP(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], -1, -1, -1, -1, 100.0);