Error with bussiness
#3

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;
}
Reply


Messages In This Thread
Error with bussiness - by Kemo - 23.03.2013, 12:37
Re: Error with bussiness - by RenovanZ - 23.03.2013, 12:44
Re: Error with bussiness - by Joshman543 - 23.03.2013, 12:45
Re: Error with bussiness - by Kemo - 23.03.2013, 12:51
Re: Error with bussiness - by RenovanZ - 23.03.2013, 12:51
Re: Error with bussiness - by Kemo - 23.03.2013, 12:55
Re: Error with bussiness - by Joshman543 - 23.03.2013, 12:56
Re: Error with bussiness - by Kemo - 23.03.2013, 12:58
Re: Error with bussiness - by RenovanZ - 23.03.2013, 12:59
Re: Error with bussiness - by Kemo - 23.03.2013, 13:04

Forum Jump:


Users browsing this thread: 1 Guest(s)