Pickups doesnt appear :(
#1

Hii, i have a business system, but the pickups doesnt appear, do anyone know whats wrong?

I have this on gamemodeinit
pawn Код:
for(new h = 0; h < sizeof(BizzInfo); h++)
    {
        if(BizzInfo[h][bOwned] == 0)
        {
            format(PropertyString,sizeof(PropertyString),""COL_BIZ"%s \n"COL_WHITE"Business:"COL_BIZ"For Sale \n "COL_WHITE"Price: "COL_BIZ"$%d",BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice]);
            BizzLabel[h] = Create3DTextLabel(PropertyString ,COLOR_BIZ,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],25, 0, 1);
            BizzInfo[h][bPickupID]=CreatePickup(1272, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
            pickups++;
        }
        if(BizzInfo[h][bOwned] == 1)
        {
            format(PropertyString,sizeof(PropertyString),""COL_BIZ"%s \n"COL_WHITE"Owner: "COL_BIZ"%s \n "COL_WHITE"Entry Fee: "COL_BIZ"$%d",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bEntranceCost]);
            BizzLabel[h] = Create3DTextLabel(PropertyString ,COLOR_BIZ,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],25, 0, 1);
            BizzPickup[h] = CreatePickup(1272, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
            pickups++;
        }
    }
Reply
#2

Make sure your not creating the pickup under the ground :P
Reply
#3

it's created at the same location as the 3dtext lable
Reply
#4

Looks a bit like an edit there... Which edit is it?
Reply
#5

Quote:
Originally Posted by MayaEU
Посмотреть сообщение
Hii, i have a business system, but the pickups doesnt appear, do anyone know whats wrong?

I have this on gamemodeinit
pawn Код:
for(new h = 0; h < sizeof(BizzInfo); h++)
    {
        if(BizzInfo[h][bOwned] == 0)
        {
            format(PropertyString,sizeof(PropertyString),""COL_BIZ"%s \n"COL_WHITE"Business:"COL_BIZ"For Sale \n "COL_WHITE"Price: "COL_BIZ"$%d",BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice]);
            BizzLabel[h] = Create3DTextLabel(PropertyString ,COLOR_BIZ,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],25, 0, 1);
            BizzInfo[h][bPickupID]=CreatePickup(1272, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
            pickups++;
        }
pawn Код:
if(BizzInfo[h][bOwned] == 1)
        {
            format(PropertyString,sizeof(PropertyString),""COL_BIZ"%s \n"COL_WHITE"Owner: "COL_BIZ"%s \n "COL_WHITE"Entry Fee: "COL_BIZ"$%d",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bEntranceCost]);
            BizzLabel[h] = Create3DTextLabel(PropertyString ,COLOR_BIZ,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],25, 0, 1);
            BizzPickup[h] = CreatePickup(1272, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
            pickups++;
        }
    }
First you used BizzInfo[h][bPickupID] and after BizzPickup[h]. Try to change this.
Reply
#6

it doesnt Work
Reply
#7

Which edit is it, and what have you done recently to cause this.

This is where Diff, and SVNs have an advantage.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)