23.03.2013, 12:58
Code :
Quote:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) { return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { return 1; } public OnRconLoginAttempt(ip[], password[], success) { return 1; } public OnPlayerUpdate(playerid) { return 1; } forward OnPlayerPickUpDynamicPickup(playerid, pickupid) 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; } |