[HELP] This happens i dont know whats wrong! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] This happens i dont know whats wrong! (
/showthread.php?tid=262043)
[HELP] This happens i dont know whats wrong! -
ahmetg - 16.06.2011
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?!
Re: [HELP] This happens i dont know whats wrong! -
sleepysnowflake - 16.06.2011
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);