19.04.2012, 19:02
Error i get
CMD
Код:
C:\Users\Robins\Desktop\Windows\gamemodes\PR.pwn(12414) : warning 217: loose indentation C:\Users\Robins\Desktop\Windows\gamemodes\PR.pwn(12705) : error 054: unmatched closing brace ("}") C:\Users\Robins\Desktop\Windows\gamemodes\PR.pwn(12706) : error 010: invalid function or declaration
CMD
pawn Код:
}
command(enter, playerid, params[])
{
for(new i = 0; i < sizeof(Houses); i++)
{
if(GetPlayerVirtualWorld(playerid) >= 55000 && GetPlayerVirtualWorld(playerid) < 65000 && IsPlayerInRangeOfPoint(playerid, 3, Houses[i][hInteriorX], Houses[i][hInteriorY], Houses[i][hInteriorZ]))
{
if(Player[playerid][InHouse] != 0)
{
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, Houses[Player[playerid][InHouse]][hExteriorID]);
SetPlayerPos(playerid, Houses[Player[playerid][InHouse]][hExteriorX], Houses[Player[playerid][InHouse]][hExteriorY], Houses[Player[playerid][InHouse]][hExteriorZ]);
Player[playerid][InHouse] = 0;
TextDrawHideForPlayer(playerid, ExitTextdraw);
}
else
{
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, Houses[i][hExteriorID]);
SetPlayerPos(playerid, Houses[i][hExteriorX], Houses[i][hExteriorY], Houses[i][hExteriorZ]);
}
}
}
for(new i = 0; i < sizeof(Businesses); i++)
{
if(GetPlayerVirtualWorld(playerid) >= 65000 && GetPlayerVirtualWorld(playerid) < 75000 && IsPlayerInRangeOfPoint(playerid, 3, Businesses[i][bInteriorX], Businesses[i][bInteriorY], Businesses[i][bInteriorZ]))
{
if(Player[playerid][InBusiness] != 0)
{
SetPlayerVirtualWorld(playerid, 0);
TextDrawHideForPlayer(playerid, ExitTextdraw);
SetPlayerInterior(playerid, Businesses[Player[playerid][InBusiness]][bExteriorID]);
SetPlayerPos(playerid, Businesses[Player[playerid][InBusiness]][bExteriorX], Businesses[Player[playerid][InBusiness]][bExteriorY], Businesses[Player[playerid][InBusiness]][bExteriorZ]);
Player[playerid][InBusiness] = 0;
}
else
{
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, Businesses[i][bExteriorID]);
SetPlayerPos(playerid, Businesses[i][bExteriorX], Businesses[i][bExteriorY], Businesses[i][bExteriorZ]);
}
}
}
for(new i = 0; i < sizeof(Groups); i++)
{
if(GetPlayerVirtualWorld(playerid) >= 45000 && GetPlayerVirtualWorld(playerid) < 55000 && IsPlayerInRangeOfPoint(playerid, 3, Groups[i][HQInteriorX], Groups[i][HQInteriorY], Groups[i][HQInteriorZ]))
{
if(GetPlayerInterior(playerid) == Groups[i][HQInteriorID])
{
if(Player[playerid][InGroupHQ] != 0)
{
SetPlayerVirtualWorld(playerid, 0);
TextDrawHideForPlayer(playerid, ExitTextdraw);
SetPlayerInterior(playerid, Groups[Player[playerid][InGroupHQ]][HQExteriorID]);
SetPlayerPos(playerid, Groups[Player[playerid][InGroupHQ]][HQExteriorX], Groups[Player[playerid][InGroupHQ]][HQExteriorY], Groups[Player[playerid][InGroupHQ]][HQExteriorZ]);
Player[playerid][InGroupHQ] = 0;
}
else
{
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, Groups[i][HQExteriorID]);
SetPlayerPos(playerid, Groups[i][HQExteriorX], Groups[i][HQExteriorY], Groups[i][HQExteriorZ]);
}
}
}
}
if(IsPlayerInRangeOfPoint(playerid, 2,1773.0832,-1547.6519,9.90625))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1460.3502,-95.2423,26.1420);
}
else if(IsPlayerInRangeOfPoint(playerid, 2, 1400.0314,4.5102,-7.2056))
{
SetPlayerPos(playerid,1725.0063,-128.4586,-34.9543);
SetPlayerInterior(playerid, 0);
}
else if(IsPlayerInRangeOfPoint(playerid, 2, 1725.0063,-128.4586,-34.9543))
{
SetPlayerPos(playerid,1400.0314,4.5102,-7.2056);
SetPlayerInterior(playerid, 0);
}
else if(IsPlayerInRangeOfPoint(playerid, 2, 1499.9691,-82.0581,26.1420))
{
SetPlayerPos(playerid,1497.2288,-81.3329,26.1420);
SetPlayerInterior(playerid, 0);
}
else if(IsPlayerInRangeOfPoint(playerid, 2, 1492.8684,-86.6684,26.1420))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,194.2096,-228.4628,1.7786);
}
else if(IsPlayerInRangeOfPoint(playerid, 2, 1488.8529,-86.6175,26.1420))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1343.2317,62.3209,29.1844);
}
else if(IsPlayerInRangeOfPoint(playerid, 2, 194.2096,-228.4628,1.7786))
{
SetPlayerPos(playerid,1492.9663,-86.6644,26.1420);
SetPlayerInterior(playerid, 0);
}
else if(IsPlayerInRangeOfPoint(playerid, 2, 1505.1566,-86.4536,26.1420))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1622.6740,166.0094,44.1398);
}
else if(IsPlayerInRangeOfPoint(playerid, 2, 1456.6641,-89.7050,26.1420))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1361.3407,24.6916,-3.0415);
}
else if(IsPlayerInRangeOfPoint(playerid, 2, 1496.5186,-86.4855,26.1420))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1505.3113,125.2640,59.5980);//gym enter
}
else if(IsPlayerInRangeOfPoint(playerid, 2, 387.7978,173.8582,1008.3828))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-2162.2554,-2385.9541,30.6250);
}
else if(IsPlayerInRangeOfPoint(playerid, 2, 1460.3502,-95.2423,26.1420))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1773.0832,-1547.6519,9.90625);
}
else if(IsPlayerInRangeOfPoint(playerid, 2, -1404.5299,-259.0602,1043.6563))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2695.6235,-1704.6960,11.8438);
}
else if(IsPlayerInRangeOfPoint(playerid, 2, 1622.4746,166.0550,44.1398))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1505.0154,-86.4948,26.1420);//duty room exit.
}
else if(IsPlayerInRangeOfPoint(playerid, 2, 1499.4904,-81.8598,26.1420))
{
if(Groups[Player[playerid][Group]][CommandTypes] == 1)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1499.9691,-82.0581,26.1420);
}
}
else if(IsPlayerInRangeOfPoint(playerid, 2, 1258.4672,-110.4011,45.9662))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1492.8684,-86.6684,26.1420);
}
else if(IsPlayerInRangeOfPoint(playerid, 2, 1343.2317,62.3209,29.1844))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1488.8461,-86.6500,26.1420);
}
else if(IsPlayerInRangeOfPoint(playerid, 2, 1505.3113,125.2640,59.5980))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1496.5186,-86.4855,26.1420);
}
else if(IsPlayerInRangeOfPoint(playerid, 2, 1361.3407,24.6916,-3.0415))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1456.6641,-89.7050,26.1420);//food court
}
else if(IsPlayerInRangeOfPoint(playerid, 2, 1361.6353,24.6260,-3.0415))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1488.7528,-86.7431,26.1420);
}
else if(IsPlayerInRangeOfPoint(playerid, 2, -1443.0554,-581.1879,1055.0472))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-2111.5686,-443.9720,38.7344);
}
else if(IsPlayerInRangeOfPoint(playerid, 2, -194.42,-228.41,1.77))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1488.75,-86.74,26.14);
}
else if(IsPlayerInRangeOfPoint(playerid, 2, 194.1899,-228.6177,1.7786))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1488.75,-86.74,26.14);
}
else if(IsPlayerInRangeOfPoint(playerid, 2, -1464.7732,1557.5533,1052.5313))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-2080.3079,-406.0309,38.7344);
}
else if(IsPlayerInRangeOfPoint(playerid, 2, BankExtX, BankExtY, BankExtZ))
{
SetPlayerInterior(playerid, BankIntID);
SetPlayerPos(playerid, BankIntX, BankIntY, BankIntZ);
TextDrawShowForPlayer(playerid, ExitTextdraw);
SendClientMessage(playerid, WHITE, "You have entered The Bank!");
SendClientMessage(playerid, GREY, "Bank Commands: /bdeposit, /bwithdraw, /wiretransfer");
}
for(new i = 0; i < sizeof(Businesses); i++)
{
if(IsPlayerInRangeOfPoint(playerid, 2, Businesses[i][bExteriorX], Businesses[i][bExteriorY], Businesses[i][bExteriorZ]))
{
if(GetPlayerVirtualWorld(playerid) == 0)
{
if(Businesses[i][bLockStatus] == 0)
{
SetPlayerVirtualWorld(playerid, 65000+i);
TextDrawShowForPlayer(playerid, ExitTextdraw);
SetPlayerInterior(playerid, Businesses[i][bInteriorID]);
SetPlayerPos(playerid, Businesses[i][bInteriorX], Businesses[i][bInteriorY], Businesses[i][bInteriorZ]);
SendClientMessage(playerid, WHITE, "You've entered a Business. Type /help to see the extra commands available in here!");
SendClientMessage(playerid, GREY, "WARNING: Please avoid picking up interior weapons to avoid being potentially auto-banned.");
Player[playerid][InBusiness] = i;
}
else
{
SendClientMessage(playerid, WHITE, "This business is locked!");
}
}
}
}
for(new i = 0; i < sizeof(Houses); i++)
{
if(IsPlayerInRangeOfPoint(playerid, 2, Houses[i][hExteriorX], Houses[i][hExteriorY], Houses[i][hExteriorZ]))
{
if(GetPlayerVirtualWorld(playerid) == 0)
{
if(Houses[i][LockStatus] == 0)
{
if(strcmp(Houses[i][hOwner], "Nobody", true) == 0)
{
SendClientMessage(playerid, WHITE, "This property is for sale!");
}
Player[playerid][InHouse] = i;
TextDrawShowForPlayer(playerid, ExitTextdraw);
SetPlayerVirtualWorld(playerid, 55000+i);
SetPlayerInterior(playerid, Houses[i][hInteriorID]);
SetPlayerPos(playerid, Houses[i][hInteriorX], Houses[i][hInteriorY], Houses[i][hInteriorZ]);
SendClientMessage(playerid, GREY, "WARNING: Please avoid picking up interior weapons to avoid being potentially auto-banned.");
}
else
{
SendClientMessage(playerid, WHITE, "This property is locked!");
}
}
}
}
for(new i = 0; i < sizeof(Groups); i++)
{
if(IsPlayerInRangeOfPoint(playerid, 2, Groups[i][HQExteriorX], Groups[i][HQExteriorY], Groups[i][HQExteriorZ]))
{
if(GetPlayerInterior(playerid) == Groups[i][HQExteriorID] && GetPlayerVirtualWorld(playerid) == 0)
{
if(Groups[i][HQLock] == 0)
{
Player[playerid][InGroupHQ] = i;
SetPlayerVirtualWorld(playerid, 45000+i);
TextDrawShowForPlayer(playerid, ExitTextdraw);
SetPlayerInterior(playerid, Groups[i][HQInteriorID]);
SetPlayerPos(playerid, Groups[i][HQInteriorX], Groups[i][HQInteriorY], Groups[i][HQInteriorZ]);
SendClientMessage(playerid, GREY, "WARNING: Please avoid picking up interior weapons to avoid being potentially auto-banned.");
}
else
{
SendClientMessage(playerid, WHITE, "This HQ is locked!");
}
}
}
}
}
}
return 1;