if(BizInfo[idx][bType]) // If Business is owned { BizInfo[idx][bPickup] = CreateDynamicPickup(1272, 1, BizInfo[idx][bX], BizInfo[idx][bY], BizInfo[idx][bZ], 0); if(!strcmp("The State", BizInfo[idx][bOwner])) format(string, sizeof(string), "Owner: %s\nBusiness Type: %s\nStatus: For Sale\nPrice: $%d", BizInfo[idx][bOwner], RBT(idx), BizInfo[idx][bPrice]); else format(string, sizeof(string), "Business of %s\nBusiness type: %s\n%s", BizInfo[idx][bOwner], RBT(idx), RBS(idx)); BizInfo[idx][bText] = CreateDynamic3DTextLabel(string, COLOR_WHITE, BizInfo[idx][bX], BizInfo[idx][bY], BizInfo[idx][bZ]+0.3, 15); }
if(IsPlayerInRangeOfPoint(playerid, 2, BizInfo[idx][bX], BizInfo[idx][bY], BizInfo[idx][bZ]))
if(BizInfo[idx][bType]) // If Business is owned
{
BizInfo[idx][bPickup] = CreateDynamicPickup(1272, 1, BizInfo[idx][bX], BizInfo[idx][bY], BizInfo[idx][bZ], 0);
if(!strcmp("The State", BizInfo[idx][bOwner])) format(string, sizeof(string), "Owner: %s~n~Business Type: %s~n~Status: For Sale~n~Price: $%d", BizInfo[idx][bOwner], RBT(idx), BizInfo[idx][bPrice]);
else format(string, sizeof(string), "Business of %s ~n~Business type: %s~n~ %s", BizInfo[idx][bOwner], RBT(idx), RBS(idx));
BizInfo[idx][bText] = GameTextForPlayer(playerid, string, 5000, 5);
}
C:\Users\Ciaran\Desktop\Bone County Roleplay\gamemodes\BCRP.pwn(3032) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning. |
if(BizInfo[idx][bType]) // If Business is owned { BizInfo[idx][bPickup] = CreateDynamicPickup(1272, 1, BizInfo[idx][bX], BizInfo[idx][bY], BizInfo[idx][bZ], 0); if(!strcmp("The State", BizInfo[idx][bOwner])) format(string, sizeof(string), "Owner: %s~n~Business Type: %s~n~Status: For Sale~n~Price: $%d", BizInfo[idx][bOwner], RBT(idx), BizInfo[idx][bPrice]); else format(string, sizeof(string), "Business of %s ~n~Business type: %s~n~ %s", BizInfo[idx][bOwner], RBT(idx), RBS(idx)); BizInfo[idx][bText] = GameTextForPlayer(playerid, string, 5000, 5); //This line is the error }