29.10.2010, 09:59
(
Последний раз редактировалось xPawn; 29.10.2010 в 11:51.
)
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 :
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;
}