Skripta koju koristim: Moj iz 0
Detaljan opis problema:Pa sad kad namestim da se ulazi u baze sa tipku i mi izbaci ovaj e error
(38212) : error 030: compound statement not closed at the end of file (started at line 37856)
Dio skripte:Evo sve to izpod onplayerkeystatechange
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
new string[128];
new sendername[MAX_PLAYER_NAME];
new pveh = GetVehicleModel(GetPlayerVehicleID(playerid));
new newcar = GetPlayerVehicleID(playerid);
if(newkeys == KEY_JUMP)//128
{
if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(HouseInfo); i++)
{
if (PlayerToPoint(3, playerid,HouseInfo[hEntrancex], HouseInfo[hEntrancey], HouseInfo[hEntrancez]))
{
//printf("Found House :%d",i);
if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[hLock] == 0)
{
SetPlayerInterior(playerid,HouseInfo[hInt]);
SetPlayerPos(playerid,HouseInfo[hExitx],HouseInfo[hExity],HouseInfo[hExitz]);
GameTextForPlayer(playerid, "~w~Dobrodojdovte doma", 5000, 1);
PlayerInfo[playerid][pInt] = HouseInfo[hInt];
PlayerInfo[playerid][pLocal] = i;
}
else
{
GameTextForPlayer(playerid, "~r~Zakluceno", 5000, 1);
}
}
}
for(new i = 0; i < sizeof(BizzInfo); i++)
{
if (PlayerToPoint(3, playerid,BizzInfo[bEntranceX], BizzInfo[bEntranceY], BizzInfo[bEntranceZ]))
{
//printf("Found House :%d",i);
if(!IsACop(playerid) && i == 3)
{
SendClientMessage(playerid, COLOR_GREY, " Samo policija !");
return 1;
}
if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= BizzInfo[bEntranceCost])
{
if(PlayerInfo[playerid][pPbiskey] != i)
{
if(BizzInfo[bLocked] == 1)
{
GameTextForPlayer(playerid, "~r~Zatvoreno", 5000, 1);
return 1;
}
if(BizzInfo[bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
return 1;
}
GivePlayerMoney(playerid,-BizzInfo[bEntranceCost]);
format(string, sizeof(string), "~r~-$%d~n~~w~Napisete /exit~n~da izlezete", BizzInfo[bEntranceCost]);
BizzInfo[bTill] += BizzInfo[bEntranceCost];
ExtortionBiz(i, BizzInfo[bEntranceCost]);
BizzInfo[bProducts]--;
OnPropUpdate();
GameTextForPlayer(playerid, string, 5000, 3);
}
SetPlayerInterior(playerid,BizzInfo[bInterior]);
SetPlayerPos(playerid,BizzInfo[bExitX],BizzInfo[bExitY],BizzInfo[bExitZ]);
PlayerInfo[playerid][pInt] = BizzInfo[bInterior];
PlayerInfo[playerid][pLocal] = i+99;
new dood[MAX_PLAYER_NAME];
GetPlayerName(playerid, dood, sizeof(dood));
format(string, sizeof(string), "%s Plativte $%d da vlezete vo biz %d", dood, BizzInfo[bEntranceCost], i);
printf("%s", string);
PayLog(string);
//PlayerInfo[playerid][pLocal] = i;
}
else
{
GameTextForPlayer(playerid, "~r~Nemate dovolno pari", 5000, 1);
}
}
}
for(new i = 0; i < sizeof(SBizzInfo); i++)
{
if (PlayerToPoint(3, playerid,SBizzInfo[sbEntranceX], SBizzInfo[sbEntranceY], SBizzInfo[sbEntranceZ]))
{
if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= SBizzInfo[sbEntranceCost])
{
if(PlayerInfo[playerid][pPbiskey] != i)
{
if(SBizzInfo[sbLocked] == 1)
{
GameTextForPlayer(playerid, "~r~Zatvoreno", 5000, 1);
return 1;
}
if(SBizzInfo[sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
return 1;
}
if(i == 10)
{
PaintballPlayers ++;
PlayerPaintballing[playerid] = 1;
new rand = random(sizeof(PaintballSpawns));
SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
TogglePlayerControllable(playerid, 0);
}
else if(i == 11)
{
PlayerKarting[playerid] = 1;
SendClientMessage(playerid, TEAM_GROVE_COLOR, "You can now parcipitate in a Karting Race, grab a Kart.");
}
else
{
return 1;
}
GivePlayerMoney(playerid,-SBizzInfo[sbEntranceCost]);
gSpentCash[playerid] = GetPlayerMoney(playerid);
SBizzInfo[sbProducts]--;
SBizzInfo[sbTill] += SBizzInfo[sbEntranceCost];
ExtortionSBiz(i, SBizzInfo[sbEntranceCost]);
new dood[MAX_PLAYER_NAME];
GetPlayerName(playerid, dood, sizeof(dood));
format(string, sizeof(string), "%s Plativte $%d da vlezete vo biz %d", dood, SBizzInfo[sbEntranceCost], i);
printf("%s", string);
PayLog(string);
OnPropUpdate();
}
}
else
{
GameTextForPlayer(playerid, "~r~You dont have the cash", 5000, 1);
}
}
}
if (PlayerToPoint(2.0, playerid,1482.5220,-1771.1979,18.7958))
{
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,387.7978,173.8582,1008.3828);
GameTextForPlayer(playerid, "~w~Dobrodojdovte vo opshtina", 5000, 1);
PlayerInfo[playerid][pInt] = 3;
}
else if (PlayerToPoint(2.0, playerid,2340.2397,-1215.9818,22.5000))
{
if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
{
SetPlayerInterior(playerid,2);
SetPlayerPos(playerid,1205.0947,-10.1685,1000.9219);
PlayerInfo[playerid][pInt] = 2;
PlayerInfo[playerid][pLocal] = 242;
}
}
else if (PlayerToPoint(2.0, playerid,1152.2264,-1318.1428,-18.4465))//bolnica
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1149.1705,-1313.2731,13.6935);
GameTextForPlayer(playerid, "~r~Garaza", 5000, 3);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 3;
}
else if (PlayerToPoint(1, playerid,1175.3717,-1347.7832,-18.4465))
{
//Ulaz u kancelariju
SetPlayerPos(playerid, 1107.8506,-1262.1493,-18.4465);
SetPlayerInterior(playerid,3);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 3;
TogglePlayerControllable(playerid, 0);
SetTimerEx("UlazuInt",2000, false, "i", playerid);
}
else if (PlayerToPoint(1, playerid,1149.6031,-1313.1544,13.6980))
{
SetPlayerPos(playerid, 1152.9657,-1318.0933,-18.4465);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
TogglePlayerControllable(playerid, 0);
SetTimerEx("UlazuInt",2000, false, "i", playerid);
}
else if (PlayerToPoint(1, playerid,1160.4167,-1363.9860,-18.4465))
{
//Ulaz u salu za operisanje
SetPlayerPos(playerid, 1105.0232,-1404.3132,-18.4465);
SetPlayerInterior(playerid,3);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 3;
TogglePlayerControllable(playerid, 0);
SetTimerEx("UlazuInt",2000, false, "i", playerid);
}
else if (PlayerToPoint(1, playerid,1163.6619,-1327.9790,-18.4465))
{
//Ulaz u spavaonicu
SetPlayerPos(playerid, 1116.7186,-1353.1226,-13.6465);
SetPlayerInterior(playerid,3);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 3;
TogglePlayerControllable(playerid, 0);
SetTimerEx("UlazuInt",2000, false, "i", playerid);
}
else if (PlayerToPoint(2.0, playerid,1555.1678,-1675.7308,16.1953))
{
SetPlayerInterior(playerid,6);
SetPlayerPos(playerid,246.3974,64.0116,1003.6406);
PlayerInfo[playerid][pInt] = 6;
PlayerInfo[playerid][pLocal] = 242;
}
if(PlayerToPoint(1, playerid,1463.6949,-1010.3029,26.8438))
{//Ulaz u banku
GameTextForPlayer(playerid, "~w~Banka.", 3000, 1);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1457.6887,-1012.8301,14.2328);
PlayerInfo[playerid][pInt] = 0;
}
if (PlayerToPoint(2.0, playerid,1219.3455,-1812.7297,16.5938))
{
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,288.745971,169.350997,1007.171875);
GameTextForPlayer(playerid, "~w~Narodna Banka", 5000, 1);
PlayerInfo[playerid][pInt] = 3;
}
if (PlayerToPoint(2.0, playerid,1425.7891,-968.4042,37.4321))
{
GameTextForPlayer(playerid, "~w~DM Zona", 5000, 1);
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid,-975.975708,1060.983032,1345.671875);
PlayerInfo[playerid][pInt] = 10;
}
if (PlayerToPoint(2.0, playerid,1020.7428,-1262.7234,15.1797))
{
GameTextForPlayer(playerid, "~w~Hitman", 5000, 1);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1021.4951,-1261.6726,15.1797);
PlayerInfo[playerid][pInt] = 0;
}
if (PlayerToPoint(2.0, playerid,1017.5238,-1255.3932,15.1797))
{
GameTextForPlayer(playerid, "~w~Hitman Baza", 5000, 1);
SetPlayerInterior(playerid, 2);
SetPlayerPos(playerid,2543.462646,-1308.379882,1026.728393);
PlayerInfo[playerid][pInt] = 2;
}
if (PlayerToPoint(2.0, playerid,1172.7298,-1323.2902,15.4014))
{
GameTextForPlayer(playerid, "~w~Brza Pomos", 5000, 1);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2090.8984,-2270.8452,990.6147);
GameTextForPlayer(playerid, "Objektite se vcituvaat...", 4000, 5);
SetPVarInt(playerid, "LoadingObjects", 1);
SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
PlayerInfo[playerid][pInt] = 0;
}
else if (PlayerToPoint(2.0,playerid,2770.5771,-1628.7227,12.1775))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerInterior(playerid,10);
SetPlayerPos(playerid,246.3933,107.6754,1003.2188);
PlayerInfo[playerid][pInt] = 10;
PlayerInfo[playerid][pLocal] = 261;
GameTextForPlayer(playerid, "Dobrodojdovte vo FBI Zgrada.", 5000, 1);
}
else if (PlayerToPoint(2.0,playerid,691.5727,-1275.9847,13.5607))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerInterior(playerid,8);
SetPlayerPos(playerid,2807.619873,-1171.899902,1025.570312);
PlayerInfo[playerid][pInt] = 8;
PlayerInfo[playerid][pLocal] = 261;
GameTextForPlayer(playerid, "Dobrodojdovte vo Yakuza.", 5000, 1);//yakuza baza
}
else if (PlayerToPoint(2.0,playerid,2010.5979,-1283.4838,23.9656))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerInterior(playerid,6);
SetPlayerPos(playerid,2196.6790,-1204.3894,1049.0234);
PlayerInfo[playerid][pInt] = 6;
PlayerInfo[playerid][pLocal] = 261;
GameTextForPlayer(playerid, "Dobrodojdovte vo LSG.", 5000, 1);//LSG Baza
}
else if (PlayerToPoint(2.0,playerid,1122.9407,-2036.8647,69.8939))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerInterior(playerid,10);
SetPlayerPos(playerid,2270.1221,-1210.6547,1047.5625);
PlayerInfo[playerid][pInt] = 10;
PlayerInfo[playerid][pLocal] = 261;
GameTextForPlayer(playerid, "Dobrodojdovte vo LCN.", 5000, 1);//LCN Baza
}
else if (PlayerToPoint(2.0,playerid,2495.4263,-1691.1401,14.7656))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,2496.049804,-1695.238159,1014.742187);
PlayerInfo[playerid][pInt] = 3;
PlayerInfo[playerid][pLocal] = 261;
GameTextForPlayer(playerid, "Dobrodojdovte vo GSF.", 5000, 1);//GSF Baza
}
else if (PlayerToPoint(2.0,playerid,2729.3269,-2451.3972,17.5937))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerInterior(playerid,5);
SetPlayerPos(playerid,322.197998,302.497985,999.148437);
PlayerInfo[playerid][pInt] = 5;
PlayerInfo[playerid][pLocal] = 261;
GameTextForPlayer(playerid, "Dobrodojdovte vo ARM.", 5000, 1);//ARM Baza
}
else if (PlayerToPoint(2.0,playerid,2310.0559,-1643.6768,14.8270))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerInterior(playerid,11);
SetPlayerPos(playerid,502.3016,-69.9530,998.7578);
PlayerInfo[playerid][pInt] = 11;
GameTextForPlayer(playerid, "Bikers Bar", 5000, 1);
}
else if (PlayerToPoint(2.0,playerid,2166.8381,-1672.6600,15.0755))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerInterior(playerid,5);
SetPlayerPos(playerid,318.5650,1118.2100,1083.8828);
PlayerInfo[playerid][pInt] = 5;
GameTextForPlayer(playerid, "Dobrodojdovte vo Diler kukja", 5000, 1);
}
else if (PlayerToPoint(2.0,playerid,2228.7551,-1723.1373,13.5533))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerInterior(playerid,5);
SetPlayerPos(playerid,771.8644,-3.1980,1000.7286);
PlayerInfo[playerid][pInt] = 5;
GameTextForPlayer(playerid, "Dobrodojdovte vo Box Arena", 5000, 1);
}
else if (PlayerToPoint(2.0, playerid,2695.6235,-1704.6960,11.8438))
{
GameTextForPlayer(playerid, "~w~Welcome to the 8ball Track", 5000, 1);
SetPlayerInterior(playerid,7);
SetPlayerPos(playerid,-1404.5299,-259.0602,1043.6563);
}
else if (PlayerToPoint(8.0, playerid,-2111.5686,-443.9720,38.7344))
{
GameTextForPlayer(playerid, "~w~Welcome to the Dirt Track", 5000, 1);
SetPlayerInterior(playerid,4);
SetPlayerPos(playerid,-1443.0554,-581.1879,1055.0472);
}
else if (PlayerToPoint(8.0, playerid,-2080.3079,-406.0309,38.7344))
{
GameTextForPlayer(playerid, "~w~Welcome to the Stunting Track", 5000, 1);
SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,-1464.7732,1557.5533,1052.5313);
}
}
return 1;
}
Evo ta linija od errora
Neke slike/video za lakse dobivanje pomoci(neobavezno):/