Business help
#1

I tried to add new business type to one GM, and everything except one thing works. I can enter biz but when I try to exit, nothing happens. Biz system has 6 businesses created and I tried to add one more. This is code for leaving the biz:
Код:
else if(IsPlayerInRangeOfPoint(playerid, 2, -27.3025,-57.6649,1003.5469) || IsPlayerInRangeOfPoint(playerid, 2, 207.0638,-139.9965,1003.5078) || IsPlayerInRangeOfPoint(playerid, 2, 285.8044,-85.9956,1001.5229) || IsPlayerInRangeOfPoint(playerid, 2, 493.4252,-24.3061,1000.6797) || IsPlayerInRangeOfPoint(playerid, 2, 834.1631,7.4883,1004.1797) || IsPlayerInRangeOfPoint(playerid, 2, 372.3830,-133.2579,1001.4922)) // 24/7 || Clothes Shop || Ammunation || Club || Advertisement Agency || FastFood
			{
				idx = GetPlayerVirtualWorld(playerid)-100;
				if(!done && idx < MAX_BIZ && BizInfo[idx][bType])
				{
			        SetPlayerPos(playerid, BizInfo[idx][bX], BizInfo[idx][bY], BizInfo[idx][bZ]);
			        SetPlayerInterior(playerid, 0);
			        SetPlayerVirtualWorld(playerid, 0);
		        }
		        done = 1;
		        return 1;
			}
I tried to add one more || IsPlayerInRangeOfPoint(...) to the end of
Код:
else if(IsPlayerInRangeOfPoint(playerid, 2, -27.3025,-57.6649,1003.5469) || IsPlayerInRangeOfPoint(playerid, 2, 207.0638,-139.9965,1003.5078) || IsPlayerInRangeOfPoint(playerid, 2, 285.8044,-85.9956,1001.5229) || IsPlayerInRangeOfPoint(playerid, 2, 493.4252,-24.3061,1000.6797) || IsPlayerInRangeOfPoint(playerid, 2, 834.1631,7.4883,1004.1797) || IsPlayerInRangeOfPoint(playerid, 2, 372.3830,-133.2579,1001.4922)) // 24/7 || Clothes Shop || Ammunation || Club || Advertisement Agency || FastFood
and I get lot of errors, which doesn't have any connection with the code that I wrote above. I don't get it why branching like if can't have more than 6 statements, I mean like is player in range of point.
Does someone know how can I add something to my code so I can leave my biz? I can't do it by myself. Thank you, I appreciate it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)