if(MotelInfo[h][hValue] != 0) {
new MotelInfo[SCRIPT_MAXMOTELS][mInfo];
|
hValue... Let's me think of a house.. Isn't the thing you try to do something like, mValue or something?
|
C: \ Documents and Settings \ User \ Desktop \ GM \ LSRP 1.0 Gaming EN \ Europe Nation Gaming Roleplay \ gamemodes \ enrp.pwn (61616): warning 213: tag mismatch C: \ Documents and Settings \ User \ Desktop \ GM \ LSRP 1.0 Gaming EN \ Europe Nation Gaming Roleplay \ gamemodes \ enrp.pwn (61616): warning 213: tag mismatch
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(PlayerToPoint(2.0, i, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]))
{
if(BizzInfo[h][bOwned] == 1)
{
format(string, sizeof(string), "~b~SHOP:~w~%s~b~~n~OWNER:~w~%s~n~~b~VALUE:~w~ $%d",BizzInfo[h][bMessage],SBizzInfo[h][bOwner],SBizzInfo[h][bEntranceCost]); // Line 61616, warning.
}
else
{
format(string, sizeof(string), "~w~%s~w~~n~This Business is for sale~n~Cost: ~g~$%d ~w~Level : %d ~n~~b~ /buybiz ~w~to buy this Business",BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice],BizzInfo[h][bLevelNeeded]);
}
InfoBoxForPlayer(i, string);
SendDebugMessage("CustomPickups, BizzInfo");
}
}
enum bInfo
{
bOwned,
bOwner[64],
bMessage[128],
bExtortion[MAX_PLAYER_NAME],
Float:bEntranceX,
Float:bEntranceY,
Float:bEntranceZ,
Float:bExitX,
Float:bExitY,
Float:bExitZ,
bLevelNeeded,
bBuyPrice,
bEntranceCost,
bTill,
bLocked,
bInterior,
bProducts,
bMaxProducts,
bPriceProd,
bProdBiz,
bGunLicBiz,
bPickupID,
bWorld,
};
new BizzInfo[58][bInfo];
enum sbInfo
{
sbOwned,
sbOwner[64],
sbMessage[128],
sbExtortion[MAX_PLAYER_NAME],
Float:sbEntranceX,
Float:sbEntranceY,
Float:sbEntranceZ,
sbLevelNeeded,
sbBuyPrice,
sbEntranceCost,
sbTill,
sbLocked,
sbInterior,
sbProducts,
sbMaxProducts,
sbPriceProd,
sbPickupID,
};
new SBizzInfo[11][sbInfo];