28.08.2011, 15:34
Код:
enum bInfo { bName[64], bOwned, bOwner[MAX_PLAYER_NAME], Float:bOutsideX, Float:bOutsideY, Float:bOutsideZ, Float:bOutsideAng, bOutsideWorld, bOutsideInt, bOutsidePickup, Float:bInsideX, Float:bInsideY, Float:bInsideZ, Float:bInsideAng, bInsideInt, bInsidePickup, bEntryFee, bValue, bTill, bLocked, bType, bProducts } new BizInfo[MAX_BIZ][bInfo]; //===============================[A Info]======================================= enum aInfo { bName[255], bPickupID, bLocked, bVIP, bInteriorID, bExteriorID, bVirWorld, Float: bInteriorX, Float: bInteriorY, Float: bInteriorZ, Float: bExteriorX, Float: bExteriorY, Float: bExteriorZ, }; new BInfo[MAX_BUILDINGS][aInfo];
#define MAX_BUILDINGS 1000
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1