Skripta koju koristim:BUL 20% editovan
Detaljan opis problema: menjo sam nesto oko pawna i sad mi izbacuje errore i mucim muku kako da popravim skripter otiso negde u goste valjda odkud znam i sad snadji se
Dio skripte:po potrebi
Neke slike/video za lakse dobivanje pomoci(neobavezno):
(http://www.zaslike.com/files/qgxyx9piqsfoo4rsxhxh.png)
Stavi u code sve sto ti izbacuje ne vidi se sve sto pise za error ne mozemo ti tako pomoci..
Hm, msm da imaÅ¡ 26 errora... A to znaÄi, da si se negdje sjebo sa { ili }
odnosno fali ti negdje otvorena ili zatvorena zagrada zadnje sto si ubacivao sa zagrada prebroji zatvorene ili otvorene moras ih imat jednak broj
(http://www.zaslike.com/files/2vk7fymjpdnvj44ess1.jpg)
sami errori ti kazu... vidi gde si izostavio zagradice, {}
evo vam skripta od 2629 pa do 3065
ResetujOruzije(i); 2629 red
SafeGivePlayerWeapon(i, 29, 999);
TogglePlayerControllable(i, 1);
SendClientMessage(i, BLCRVENA, "Paintball Mech je poceo, ostalo je jos 4 minuta.");
PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
}
}
SetTimer("PaintballEnded", 240000, 0);
return 1;
}
public PaintballEnded()
{
new string[256];
new name[MAX_PLAYER_NAME];
foreach (Player, i)
{
if(PlayerPaintballing[i] != 0)
{
if(IsPlayerConnected(PaintballWinner))
{
GetPlayerName(PaintballWinner, name, sizeof(name));
format(string,sizeof(string), "** %s je osvojio mech sa %d ubistava **",name,PaintballWinnerKills);
SendClientMessage(i, COLOR_WHITE, string);
}
ResetujOruzije(i);
PlayerPaintballing[i] = 0;
SetPlayerPos(i, SBizzInfo[10][sbEntranceX],SBizzInfo[10][sbEntranceY],SBizzInfo[10][sbEntranceZ]);
}
}
AnnouncedPaintballRound = 0;
PaintballRound = 0;
return 1;
}
public PrepareKarting()
{
foreach (Player, i)
{
if(PlayerKarting[i] != 0 && PlayerInKart[i] != 0)
{
CP[i] = 9;
SetPlayerCheckpoint(i,2308.3540,-2354.0039,12.6842,8.0);
SendClientMessage(i, BLCRVENA, "Kart Race will start in 20 seconds, go to the starting line.");
}
}
SetTimer("StartKarting", 20000, 0);
return 1;
}
public StartKarting()
{
KartingRound = 1;
StartingKartRound = 0;
EndingKartRound = 0;
FirstKartWinner = 999;
SecondKartWinner = 999;
ThirdKartWinner = 999;
foreach (Player, i)
{
if(PlayerKarting[i] != 0 && PlayerInKart[i] != 0)
{
CP[i] = 10;
SendClientMessage(i, BLCRVENA, "Green light, go go go !");
PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(i,2308.3540,-2354.0039,12.6842,8.0);
}
}
SetTimer("KartingEnded", 240000, 0);
return 1;
}
public KartingEnded()
{
foreach (Player, i)
{
if(PlayerKarting[i] != 0 && PlayerInKart[i] != 0)
{
CP[i] = 0;
DisablePlayerCheckpoint(i);
}
}
AnnouncedKartRound = 0;
KartingRound = 0;
return 1;
}
public DollahScoreUpdate()
{
new LevScore;
foreach (Player, i)
{
LevScore = PlayerInfo[i][pLevel];
SetPlayerScore(i, LevScore);
}
return 1;
}
public Encrypt(string[])
{
for(new x=0; x < strlen(string); x++)
{
string[x] += (3^x) * (x % 15);
if(string[x] > (0xff))
{
string[x] -= 256;
}
}
return 1;
}
//------------------------------------------------------------------------------------------------------
public OnVehicleSpawn(vehicleid)
{
for(new i = 1; i < sizeof(Vozila); i++)
{
if(Vozila[i][mOsobno] == vehicleid)
{
ChangeVehicleColor(vehicleid, Vozila[i][mpBoja], Vozila[i][mdBoja]);
SetVehiclePos(Vozila[i][mOsobno], Vozila[i][mX], Vozila[i][mY],Vozila[i][mZ]);
SetVehicleZAngle(Vozila[i][mOsobno], Vozila[i][mA]);
}
}
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new Float:X, Float: Y, Float: Z;
GetPlayerPos(playerid, X, Y , Z);
for(new i = 1; i < sizeof(Vozila); i++)
{
if(Vozila[i][mOsobno] == vehicleid)
{
if(Vozila[i][mKoristen] == 1)
{
new string[48];
format(string, sizeof(string), "~g~~n~VLASNIK:~w~ %s",Vozila[i][mVlasnik]);
GameTextForPlayer(playerid,string,2000,4);
if(Vozila[i][mZakljucan] != 0)
{
SetPlayerPos(playerid,X,Y,Z);
}
}
}
}
if( vehicleid == IzlozbenoVozilo)
{
SetPlayerPos(playerid,X,Y,Z);
GameTextForPlayer(playerid,"Nemozete uci u izlozbeno~n~ vozilo...",2000,5);
}
if(gTeam[playerid] >= 1||gTeam[playerid] >= 3||gTeam[playerid] >= 4)
{
if (IsACopCar(vehicleid) && !ispassenger)
{
if(PlayerInfo[playerid][pLider]==1||PlayerInfo[playerid][pLider]==2||PlayerInfo[playerid][pLider]==3||PlayerInfo[playerid][pLider]==11||PlayerInfo[playerid][pClan]==1||PlayerInfo[playerid][pClan]==2||PlayerInfo[playerid][pClan]==3||PlayerInfo[playerid][pClan]==11) {}
else {
//WantedPoints[playerid]+=2;
//SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle");
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
SetPlayerPos(playerid, cx, cy, cz);
}
}
if (IsNgCar(vehicleid) && !ispassenger)
{
if(PlayerInfo[playerid][pLider]==1||PlayerInfo[playerid][pLider]==2||PlayerInfo[playerid][pLider]==3||PlayerInfo[playerid][pClan]==1||PlayerInfo[playerid][pClan]==2||PlayerInfo[playerid][pClan]==3) {}
else {
//WantedPoints[playerid]+=2;
//SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle");
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
SetPlayerPos(playerid, cx, cy, cz);
}
}
if (IsNpcVehicle(vehicleid) && !ispassenger)
{
if(PlayerInfo[playerid][pLider]==100) {}
else {
//WantedPoints[playerid]+=2;
//SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle");
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
SetPlayerPos(playerid, cx, cy, cz);
}
}
if (IsAnAmbulance(vehicleid) && !ispassenger)
{
if(PlayerInfo[playerid][pClan]==4||PlayerInfo[playerid][pLider]==4) { }
else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Kradja vozila hitne pomoci"); }
}
if (IsATank(vehicleid) && !ispassenger)
{
if(PlayerInfo[playerid][pLider]==1||PlayerInfo[playerid][pLider]==3||PlayerInfo[playerid][pClan]==3) {}
else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Kradja Tenka"); SendClientMessage(playerid, COLOR_YELLOW,"You don't know how to drive it yet."); }
}
if(IsAnOwnableCar(vehicleid) && CarInfo[vehicleid][cLock] == 1 && CarInfo[vehicleid][cOwned] == 1)
{
if(PlayerInfo[playerid][pAdmin] >= 1337 && AdminDuty[playerid] == 1) { }
else
{
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
SetPlayerPos(playerid, cx, cy, cz);
}
}
}
return 1;
}
/*public IsAnInstructor(playerid)
{
if(IsPlayerConnected(playerid))
{
new leader = PlayerInfo[playerid][pLider];
new member = PlayerInfo[playerid][pClan];
if(member==11)
{
return 1;
}
if(leader==11)
{
return 1;
}
}
return 0;
}*/
public IsAMember(playerid)
{
if(IsPlayerConnected(playerid))
{
new leader = PlayerInfo[playerid][pLider];
new member = PlayerInfo[playerid][pClan];
if(member==5 || member==6 || member==8 || member==12 || member==14 || member==15 || member==16)
{
return 1;
}
if(leader==5 || leader==6 || leader==8 || leader==12 || leader==14 || leader==15 || leader==16)
{
return 1;
}
}
return 0;
}
public IsACop(playerid)
{
if(IsPlayerConnected(playerid))
{
new leader = PlayerInfo[playerid][pLider];
new member = PlayerInfo[playerid][pClan];
if(member==1 || member==2 || member==3 || member==11)
{
return 1;
}
else if(leader==1 || leader==2 || leader==3 || leader==11)
{
return 1;
}
}
return 0;
}
public IsAGang(playerid)
{
if(IsPlayerConnected(playerid))
{
new leader = PlayerInfo[playerid][pLider];
new member = PlayerInfo[playerid][pClan];
if(member==5 || member==6 || member==8 || member==12 || member==15 || member==16)
{
return 1;
}
else if(leader==5 || leader==6 || leader==8 || leader==12 || leader==15 || leader==16)
{
return 1;
}
}
return 0;
}
public IsAPDMember(playerid)
{
if(IsPlayerConnected(playerid))
{
new leader = PlayerInfo[playerid][pLider];
new member = PlayerInfo[playerid][pClan];
if(member==1 || member==11)
{
return 1;
}
else if(leader==1 || leader==11)
{
return 1;
}
}
return 0;
}
public IsAnOwnableCar(vehicleid)
{
if(vehicleid >= 230 && vehicleid <= 550) { return 1; }
return 0;
}
public IsAtDealership(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(30.0,playerid,1081.2784,-1751.6011,13.4388) || PlayerToPoint(25.0,playerid,2128.0864,-1135.3912,25.5855) || PlayerToPoint(50,playerid,537.3366,-1293.2140,17.2422) || PlayerToPoint(35,playerid,2521.5544,-1524.4504,23.8365) || PlayerToPoint(50,playerid,2155.0146,-1177.3333,23.8211) || PlayerToPoint(50,playerid,299.1723,-1518.6627,24.6007) || PlayerToPoint(100,playerid,142.5537109375, -2002.1171875, 0.84999966621399) || PlayerToPoint(50,playerid,1048.8964,-904.7892,42.4164))
{
return 1;
}
else if(PlayerToPoint(5,playerid,1524.5046386719,-2459.6262207031,12.5546875) || PlayerToPoint(5,playerid,1606.0760498047,-2458.5505371094,12.5546855) || PlayerToPoint(5,playerid,1686.1015625000,-2458.8513183594,12.5546855) || PlayerToPoint(5,playerid,1765.3842773438,-2459.8420410156,12.5546875) || PlayerToPoint(5,playerid,1645.9104003906,-2458.6958007813,12.5546875) || PlayerToPoint(5,playerid,1727.7492675781,-2459.1301269531,12.5546875))
{
return 1;
}
}
return 0;
}
public IsAtCarrental(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(30.0,playerid,1696.5543,-1053.4685,23.9063))
{
return 1;
}
}
return 0;
}
public IsAtClothShop(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(25.0,playerid,20.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047))
{//Binco & Suburban
return 1;
}
else if(PlayerToPoint(30.0,playerid,214.4470,-7.6471,1001.2109) || PlayerToPoint(50.0,playerid,161.3765,-83.8416,1001.8047))
{//Zip & Victim
return 1;
}
}
return 0;
}
public IsAtGasStation(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(6.0,playerid,1004.0070,-939.3102,42.1797) || PlayerToPoint(6.0,playerid,1944.3260,-1772.9254,13.3906))
{//LS
return 1;
}
else if(PlayerToPoint(6.0,playerid,-90.5515,-1169.4578,2.4079) || PlayerToPoint(6.0,playerid,-1609.7958,-2718.2048,48.5391))
{//LS
return 1;
}
else if(PlayerToPoint(6.0,playerid,-2029.4968,156.4366,28.9498) || PlayerToPoint(8.0,playerid,-2408.7590,976.0934,45.4175))
{//SF
return 1;
}
else if(PlayerToPoint(5.0,playerid,-2243.9629,-2560.6477,31.8841) || PlayerToPoint(8.0,playerid,-1676.6323,414.0262,6.9484))
{//Between LS and SF
return 1;
}
else if(PlayerToPoint(6.0,playerid,2202.2349,2474.3494,10.5258) || PlayerToPoint(10.0,playerid,614.9333,1689.7418,6.6968))
{//LV
return 1;
}
else if(PlayerToPoint(8.0,playerid,-1328.8250,2677.2173,49.7665) || PlayerToPoint(6.0,playerid,70.3882,1218.6783,18.5165))
{//LV
return 1;
}
else if(PlayerToPoint(8.0,playerid,2113.7390,920.1079,10.5255) || PlayerToPoint(6.0,playerid,-1327.7218,2678.8723,50.0625))
{//LV
return 1;
}
else if(PlayerToPoint(8.0,playerid,656.4265,-559.8610,16.5015) || PlayerToPoint(6.0,playerid,656.3797,-570.4138,16.5015))
{//Dillimore
return 1;
}
else if(PlayerToPoint(8.0,playerid,125.2434463501, -1935.9764404297, 2.6310691833496) || PlayerToPoint(8.0,playerid,133.91174316406, -1941.7890625, 2.6310691833496))
{//Pumpa za Helice
return 1;
}
else if(PlayerToPoint(8.0,playerid,1004.1514892578, -936.96557617188, 47.211837768555))
{//Pumpa za Helice
return 1;
}
}
return 0;
}
public IsAtFishPlace(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(1.0,playerid,403.8266,-2088.7598,7.8359) || PlayerToPoint(1.0,playerid,398.7553,-2088.7490,7.8359))
{//Fishplace at the bigwheel
return 1;
}
else if(PlayerToPoint(1.0,playerid,396.2197,-2088.6692,7.8359) || PlayerToPoint(1.0,playerid,391.1094,-2088.7976,7.8359))
{//Fishplace at the bigwheel
return 1;
}
else if(PlayerToPoint(1.0,playerid,383.4157,-2088.7849,7.8359) || PlayerToPoint(1.0,playerid,374.9598,-2088.7979,7.8359))
{//Fishplace at the bigwheel
return 1;
}
else if(PlayerToPoint(1.0,playerid,369.8107,-2088.7927,7.8359) || PlayerToPoint(1.0,playerid,367.3637,-2088.7925,7.8359))
{//Fishplace at the bigwheel
return 1;
}
else if(PlayerToPoint(1.0,playerid,362.2244,-2088.7981,7.8359) || PlayerToPoint(1.0,playerid,354.5382,-2088.7979,7.8359))
{//Fishplace at the bigwheel
return 1;
}
}
return 0;
}
public IsAtCookPlace(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(3.0,playerid,369.9786,-4.0798,1001.8589))
{//Cluckin Bell
return 1;
}
else if(PlayerToPoint(3.0,playerid,376.4466,-60.9574,1001.5078) || PlayerToPoint(3.0,playerid,378.1215,-57.4928,1001.5078))
{//Burgershot
return 1;
}
else if(PlayerToPoint(3.0,playerid,374.1185,-113.6361,1001.4922) || PlayerToPoint(3.0,playerid,377.7971,-113.7668,1001.4922)) 3065 red
Ko ima zivce nek broji redove ko nema nek kaze :D
jaoo, pa nisu ti errori tu , nego su ti errori gde si zadnje radio nesto, gde si izostavio nesto...
(http://www.zaslike.com/files/1439stlq5zb4jafxw2by.jpg)
(http://www.zaslike.com/files/kuats13tqsmaa9nw5juf.jpg)
(http://www.zaslike.com/files/ertp2i9kvf2oncfxbas.jpg)
(http://www.zaslike.com/files/9iu3fgow109w9pys5j0.jpg)
(http://www.zaslike.com/files/6ar1i21mt4xxkt2t8mu.jpg)
(http://www.zaslike.com/files/1pxv1qbl0pjvfrswwvzs.jpg)
(http://www.zaslike.com/files/n924krhdmz4g7vhd2eb.jpg)
Bump
Pa jesi li ti glup ili sta, daj nam sta si zadnje radio u modu