Help Biz System..
#1

hello men
i have a biz system from the TUT from this forum
and i have a bug with the public OnPlayerPickupPickUp
i up on biz pickup and nothing happens
the public :
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    for(new b; b<BizConut+1; b++)
    {
        if(pickupid == BizPickup[b])
        {
            new str[256];
            if(bInfo[b][BizOwner] == -1) format(str,sizeof(str),"~r~Welcome to Biz : %s~n~~g~Cost Price : $%d~n~~y~Sell Price : $%d~n~~w~Earn Ammount : $%d",bInfo[b][BizName],bInfo[b][BizBuyCost],bInfo[b][BizSellCost],bInfo[b][BizEarn]);
            if(bInfo[b][BizOwner] != -1)
            {
                new Pname[24];
                GetPlayerName(bInfo[b][BizOwner], Pname, 24);
                format(str,sizeof(str),"~r~Welcome To Biz : %s~n~~g~Cost Price : $%d~n~~y~Sell Price : $%d~n~~w~Earn Ammount : $%d~n~Owner Biz : %s(id:%d)",bInfo[b][BizName],bInfo[b][BizBuyCost],bInfo[b][BizSellCost],bInfo[b][BizEarn],Pname,bInfo[b][BizOwner]);
                GameTextForPlayer(playerid,str,3000,6);
            }
        }
    }
    return 1;
}
Reply
#2

Reply
#3

dont use [php] tags? jeezus

[pawn] [/pawn ]
Reply
#4

i do it.. can you help me ?
Reply
#5

so your problem is that the gametext doesnt show, right?
Reply
#6

yes right ...
Reply
#7

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    for(new b; b<BizConut+1; b++)
    {
        if(pickupid == BizPickup[b])
        {
            new str[256];
            if(bInfo[b][BizOwner] == -1) format(str,sizeof(str),"~r~Welcome to Biz : %s~n~~g~Cost Price : $%d~n~~y~Sell Price : $%d~n~~w~Earn Ammount : $%d",bInfo[b][BizName],bInfo[b][BizBuyCost],bInfo[b][BizSellCost],bInfo[b][BizEarn]);
            if(bInfo[b][BizOwner] != -1)
            {
                new Pname[24];
                GetPlayerName(bInfo[b][BizOwner], Pname, 24);
                format(str,sizeof(str),"~r~Welcome To Biz : %s~n~~g~Cost Price : $%d~n~~y~Sell Price : $%d~n~~w~Earn Ammount : $%d~n~Owner Biz : %s(id:%d)",bInfo[b][BizName],bInfo[b][BizBuyCost],bInfo[b][BizSellCost],bInfo[b][BizEarn],Pname,bInfo[b][BizOwner]);
            }
        }
    }
    return GameTextForPlayer(playerid,str,3000,6);
}
Reply
#8

Yay my 50 post
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)