[HELP] This happens i dont know whats wrong!
#1

Here is the Code thats givivng the error because i am adding in More than 1 IsPlayerInRangeOfPoint for 24/7's for my busienss system.

Код:
case 3: // 24-7
						{
							if(BizInfo[i][bProducts] <= 0)
							{
								SendClientMessage(playerid, COLOR_GREY, "   This business doesn't have any products left.");
								return 1;
							}
							if(IsPlayerInRangeOfPoint(playerid, 100, -30.875, -88.9609, 1004.53) || IsPlayerInRangeOfPoint(playerid, 100, -25.884498,-185.868988,1003.546875) || IsPlayerInRangeOfPoint(playerid, 100, 6.091179,-29.271898,1003.549438) || IsPlayerInRangeOfPoint(playerid, 100, -30.946699,-89.609596,1003.546875) || IsPlayerInRangeOfPoint(playerid, 100, -25.132598,-139.066986,1003.546875) || IsPlayerInRangeOfPoint(playerid, 100, -27.312299,-29.277599,1003.557250) || IsPlayerInRangeOfPoint(playerid, 100, -26.691598,-55.714897,1003.546875)) DisplayDialogForPlayer(playerid, 3);
						}
As you can see i need more than 1 IsRange of point because different types of 24/7, Please Someone tell me what is wrong?!
Reply
#2

Sooooo .... Just for the sake of it, what's the error ?

EDIT: Try like this :

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 100, -30.875, -88.9609, 1004.53) || IsPlayerInRangeOfPoint(playerid, 100, -25.884498,-185.868988,1003.546875) || IsPlayerInRangeOfPoint(playerid, 100, 6.091179,-29.271898,1003.549438) || IsPlayerInRangeOfPoint(playerid, 100, -30.946699,-89.609596,1003.546875) ||
IsPlayerInRangeOfPoint(playerid, 100, -25.132598,-139.066986,1003.546875) || IsPlayerInRangeOfPoint(playerid, 100, -27.312299,-29.277599,1003.557250) || IsPlayerInRangeOfPoint(playerid, 100, -26.691598,-55.714897,1003.546875)) DisplayDialogForPlayer(playerid, 3);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)