Input line to long who help REP +
#1

I have the problem you now that eror fucking input line to long I now line is to long everething but i don't wonna to delete anything!!!!! LINE
if (IsPlayerInRangeOfPoint(playerid, 5.0,1363.8109,-1387.7731,13.6575) || IsPlayerInRangeOfPoint(playerid, 5.0,1165.5878,-934.6587,43.1992) || IsPlayerInRangeOfPoint(playerid, 5.0,1147.2844,-935.1246,43.1637) || IsPlayerInRangeOfPoint(playerid, 5.0,1382.6752,-962.8252,34.2436) || IsPlayerInRangeOfPoint(playerid, 5.0,1484.0481,-1029.2765,23.6563) || IsPlayerInRangeOfPoint(playerid, 5.0,969.6546,-1133.7941,23.8281) || IsPlayerInRangeOfPoint(playerid, 5.0,1230.7679,-1276.4363,13.382 || IsPlayerInRangeOfPoint(playerid, 5.0,1435.5203,-1584.8782,13.5469) || IsPlayerInRangeOfPoint(playerid, 5.0,1531.0435,-1738.5515,13.5469) || IsPlayerInRangeOfPoint(playerid, 5.0,1576.6321,-2336.5461,13.5413))
{
I now I can use strcat but I don't now how to use that and because you now help me
sorry for bad english!!!!!!!!!
I can't give you REP+ but My friend will give
PLEASE HELP : D: :
Reply
#2

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 5.0,1363.8109,-1387.7731,13.6575) || IsPlayerInRangeOfPoint(playerid, 5.0,1165.5878,-934.6587,43.1992) || IsPlayerInRangeOfPoint(playerid, 5.0,1147.2844,-935.1246,43.1637) || IsPlayerInRangeOfPoint(playerid, 5.0,1382.6752,-962.8252,34.2436) ||
    IsPlayerInRangeOfPoint(playerid, 5.0,1484.0481,-1029.2765,23.6563) || IsPlayerInRangeOfPoint(playerid, 5.0,969.6546,-1133.7941,23.8281) || IsPlayerInRangeOfPoint(playerid, 5.0,1230.7679,-1276.4363,13.382 || IsPlayerInRangeOfPoint(playerid, 5.0,1435.5203,-1584.8782,13.5469) ||
    IsPlayerInRangeOfPoint(playerid, 5.0,1531.0435,-1738.5515,13.5469) || IsPlayerInRangeOfPoint(playerid, 5.0,1576.6321,-2336.5461,13.5413)))
You can use more than one line, just remember to close it off
Reply
#3

Try this:
pawn Код:
if (IsPlayerInRangeOfPoint(playerid, 5.0,1363.8109,-1387.7731,13.6575) ||
IsPlayerInRangeOfPoint(playerid, 5.0,1165.5878,-934.6587,43.1992) ||
IsPlayerInRangeOfPoint(playerid, 5.0,1147.2844,-935.1246,43.1637) ||
IsPlayerInRangeOfPoint(playerid, 5.0,1382.6752,-962.8252,34.2436) ||
IsPlayerInRangeOfPoint(playerid, 5.0,1484.0481,-1029.2765,23.6563) ||
IsPlayerInRangeOfPoint(playerid, 5.0,969.6546,-1133.7941,23.8281) ||
IsPlayerInRangeOfPoint(playerid, 5.0,1230.7679,-1276.4363,13.382 ||
IsPlayerInRangeOfPoint(playerid, 5.0,1435.5203,-1584.8782,13.5469) ||
IsPlayerInRangeOfPoint(playerid, 5.0,1531.0435,-1738.5515,13.5469) ||
IsPlayerInRangeOfPoint(playerid, 5.0,1576.6321,-2336.5461,13.5413))
Reply
#4

thanks rep+ for you two
Reply
#5

IT's NOT WORK -.- :S :S i can't complete just pawno not responding here is my full command

Код:
    if(strcmp(cmdtext, "/trafika", true) == 0)
    {
       if(IsPlayerInRangeOfPoint(playerid, 5.0,1363.8109,-1387.7731,13.6575) || IsPlayerInRangeOfPoint(playerid, 5.0,1165.5878,-934.6587,43.1992) || IsPlayerInRangeOfPoint(playerid, 5.0,1147.2844,-935.1246,43.1637) || IsPlayerInRangeOfPoint(playerid, 5.0,1382.6752,-962.8252,34.2436) ||
       IsPlayerInRangeOfPoint(playerid, 5.0,1484.0481,-1029.2765,23.6563) || IsPlayerInRangeOfPoint(playerid, 5.0,969.6546,-1133.7941,23.8281) || IsPlayerInRangeOfPoint(playerid, 5.0,1230.7679,-1276.4363,13.382 || IsPlayerInRangeOfPoint(playerid, 5.0,1435.5203,-1584.8782,13.5469) ||
       IsPlayerInRangeOfPoint(playerid, 5.0,1531.0435,-1738.5515,13.5469) || IsPlayerInRangeOfPoint(playerid, 5.0,1576.6321,-2336.5461,13.5413))
       GetPlayerName(playerid, sendername, sizeof(sendername));
       format(string, sizeof(string), "* %s kupuje neke stvarcice na trafici (/trafika) .", sendername);
       ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
       ShowPlayerDialog(playerid, DIALOG_TRAFIKA, DIALOG_STYLE_LIST, "TRAFIKA,KIOSK", "Telefon ($500)\n Imenik ($50)\n Kredit [200RSD] ($250)", "Kupi", "Odustani");
       }
           return 1;
	}
Please guys help my friend give rep+
Reply
#6

Please guys :S
Reply
#7

Код:
if(strcmp(cmdtext, "/trafika", true) == 0)
{
	if(IsPlayerInRangeOfPoint(playerid, 5.0,1363.8109,-1387.7731,13.6575) || IsPlayerInRangeOfPoint(playerid, 5.0,1165.5878,-934.6587,43.1992) || IsPlayerInRangeOfPoint(playerid, 5.0,1147.2844,-935.1246,43.1637) || IsPlayerInRangeOfPoint(playerid, 5.0,1382.6752,-962.8252,34.2436) ||
	IsPlayerInRangeOfPoint(playerid, 5.0,1484.0481,-1029.2765,23.6563) || IsPlayerInRangeOfPoint(playerid, 5.0,969.6546,-1133.7941,23.8281) || IsPlayerInRangeOfPoint(playerid, 5.0,1230.7679,-1276.4363,13.382) || IsPlayerInRangeOfPoint(playerid, 5.0,1435.5203,-1584.8782,13.5469) ||
	IsPlayerInRangeOfPoint(playerid, 5.0,1531.0435,-1738.5515,13.5469) || IsPlayerInRangeOfPoint(playerid, 5.0,1576.6321,-2336.5461,13.5413))
	{
		GetPlayerName(playerid, sendername, sizeof(sendername));
		format(string, sizeof(string), "* %s kupuje neke stvarcice na trafici (/trafika) .", sendername);
		ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		ShowPlayerDialog(playerid, DIALOG_TRAFIKA, DIALOG_STYLE_LIST, "TRAFIKA,KIOSK", "Telefon ($500)\n Imenik ($50)\n Kredit [200RSD] ($250)", "Kupi", "Odustani");
	}
	return 1;
}
red highlighted ')' and '{' were missing
Reply
#8

pawn Код:
if(strcmp(cmdtext, "/trafika", true) == 0)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0,1363.8109,-1387.7731,13.6575) || IsPlayerInRangeOfPoint(playerid, 5.0,1165.5878,-934.6587,43.1992) || IsPlayerInRangeOfPoint(playerid, 5.0,1147.2844,-935.1246,43.1637) || IsPlayerInRangeOfPoint(playerid, 5.0,1382.6752,-962.8252,34.2436) ||
    IsPlayerInRangeOfPoint(playerid, 5.0,1484.0481,-1029.2765,23.6563) || IsPlayerInRangeOfPoint(playerid, 5.0,969.6546,-1133.7941,23.8281) || IsPlayerInRangeOfPoint(playerid, 5.0,1230.7679,-1276.4363,13.382 || IsPlayerInRangeOfPoint(playerid, 5.0,1435.5203,-1584.8782,13.5469) ||
    IsPlayerInRangeOfPoint(playerid, 5.0,1531.0435,-1738.5515,13.5469) || IsPlayerInRangeOfPoint(playerid, 5.0,1576.6321,-2336.5461,13.5413))
    {
       GetPlayerName(playerid, sendername, sizeof(sendername));
       format(string, sizeof(string), "* %s kupuje neke stvarcice na trafici (/trafika) .", sendername);
       ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
       ShowPlayerDialog(playerid, DIALOG_TRAFIKA, DIALOG_STYLE_LIST, "TRAFIKA,KIOSK", "Telefon ($500)\n Imenik ($50)\n Kredit [200RSD] ($250)", "Kupi", "Odustani");
    }
    return 1;
}
Reply
#9

@phillip875: there is still a ')' missing in your code
Reply
#10

Ok THANK YOU Kwashiorkor and you phiilip tomorow you have rep+
THANK SO MUCHHHHHH
do you guys have skype,xfire,********? Please give me to add you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)