Continuing this to the next line! HOWTO?
#1

Hello!

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/drinks", cmdtext, true, 10) == 0)
	{
		if (IsPlayerInRangeOfPoint(playerid, 7.0, 498.9, -76.0, 998.8) || IsPlayerInRangeOfPoint( playerid, 15.0, 499.5, -20.0, 1000.7) || IsPlayerInRangeOfPoint( playerid, 20.0, -227.0, 1401.2, 27.8) || IsPlayerInRangeOfPoint( playerid, 20.0, 457.3, -88.4, 999.5) || IsPlayerInRangeOfPoint( playerid, 20.0, 454.9, -110.1, 1000.0) || IsPlayerInRangeOfPoint( playerid, 15.0, 452.4, -18.1, 1001.1) || IsPlayerInRangeOfPoint( playerid, 15.0, 681.5, -455.6, -25.6 ))
		{
 		ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What would you like to drink?", "Sprunk ($3)\nBeer ($5)\nWine ($15)\nVodkaCola ($20) \nCorona Extra ($12)", "Purchase", "Cancel");
		}
		else return SendClientMessage(playerid,0xAA0000AA,"You have to be in a bar & near the bardisk!");
		return 1;
		}
	return 0;
}
You see that IsPlayerInRangeOfPoint line? If I add one more positon to that line, comes "error: line is too long"

So what Im asking is how to continue adding more positions?

Regards,
Assyria
Reply


Forum Jump:


Users browsing this thread: