23.03.2013, 12:45
pawn Код:
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
new string[256];
new BusinessInfo[200];
for(new b = 1;b < sizeof(BusinessInfo);b++)
{
if(pickupid == BusinessInfo[b][bOutsideIcon]) //this line has errors ..
{
if(BusinessInfo[b][bOwned] == 0)
{
format(string, sizeof(string), "~g~Name:~w~%s~n~~w~This business is ~g~for sale!~n~~r~Price:~g~%i~n~BizType:~w~%s~n~~g~BizID:~w~%i", BusinessInfo[b][bName], BusinessInfo[b][bPrice], BusinessType(b), b);
GameTextForPlayer(playerid, string, 3000, 3);
}
if(BusinessInfo[b][bOwned] == 1)
{
format(string, sizeof(string), "~g~Name:~w~%s~n~~g~Owner:~w~%s~n~~g~BizType:~w~%s ~n~~g~BizID:~w~%i", BusinessInfo[b][bName], BusinessInfo[b][bOwner], BusinessType(b), b);
GameTextForPlayer(playerid, string, 3000, 3);
}
}
}
return 1;
}