Pretraga

Pritisnite Enter za pretragu ili Escape za zatvaranje

Zaključano

[POMOC]Errori

pre 13 godina
377
pregleda
4
postova
Ova tema je zaključana. Samo moderatori i administratori mogu odgovarati.
[LB]Almedin Hibic
Wheel Man
pre 13 godina
Skripta koju koristim: Moja verzija SDRPG
Detaljan opis problema:NeÅ¡to sam ureÄ‘ivao u skripti neÅ¡to dodavao neÅ¡to brisao (skriptao oko 4 h neprestano) i kad sam htio Kompajlat pojavi mi se 26 errora (on0 nije ni čudo -.-  😳) Sad da znam do ćega je možda bi i rjeÅ¡io vako neznam ni do čega je ...
Dio skripte:
Errori i Warninzi :

C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\pawno\include\UG.inc(203) : warning 217: loose indentation
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\pawno\include\UG.inc(205) : warning 217: loose indentation
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\pawno\include\UG.inc(207) : warning 217: loose indentation
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\pawno\include\UG.inc(251) : warning 217: loose indentation
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\pawno\include\UG.inc(253) : warning 217: loose indentation
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\pawno\include\UG.inc(255) : warning 217: loose indentation
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\pawno\include\UG.inc(793) : warning 201: redefinition of constant/macro (symbol "OnPlayerCommandText")
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\pawno\include\UG.inc(795) : warning 201: redefinition of constant/macro (symbol "OnPlayerConnect")
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\pawno\include\UG.inc(796) : warning 201: redefinition of constant/macro (symbol "OnPlayerDisconnect")
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\pawno\include\UG.inc(797) : warning 201: redefinition of constant/macro (symbol "OnGameModeInit")
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(1991) : warning 201: redefinition of constant/macro (symbol "sInfo")
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(2735) : error 017: undefined symbol "JBC_SetPlayerPos"
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(2779) : error 017: undefined symbol "JBC_SetPlayerPos"
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(2788) : error 017: undefined symbol "JBC_SetPlayerPos"
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(2809) : error 017: undefined symbol "JBC_SetPlayerPos"
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(2841) : error 017: undefined symbol "JBC_SetVehiclePos"
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(2862) : error 017: undefined symbol "JBC_SetVehiclePos"
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(3918) : error 017: undefined symbol "JBC_SetPlayerPos"
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(3967) : error 017: undefined symbol "JBC_SetPlayerPos"
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(4170) : error 017: undefined symbol "JBC_SetPlayerPos"
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(4178) : error 017: undefined symbol "JBC_SetPlayerPos"
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(4186) : error 017: undefined symbol "JBC_SetPlayerPos"
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(4194) : error 017: undefined symbol "JBC_SetPlayerPos"
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(4202) : error 017: undefined symbol "JBC_SetPlayerPos"
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(4210) : error 017: undefined symbol "JBC_SetPlayerPos"
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(4597) : error 017: undefined symbol "JBC_SetPlayerPos"
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(4692) : error 017: undefined symbol "JBC_SetPlayerPos"
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(4703) : error 017: undefined symbol "JBC_SetPlayerPos"
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(4771) : error 017: undefined symbol "JBC_SetPlayerPos"
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(4790) : error 017: undefined symbol "JBC_SetPlayerPos"
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(4796) : error 017: undefined symbol "JBC_SetPlayerPos"
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(4806) : error 017: undefined symbol "JBC_SetPlayerPos"
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(4818) : error 017: undefined symbol "JBC_SetPlayerPos"
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(4836) : error 017: undefined symbol "JBC_SetPlayerPos"
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(4848) : error 017: undefined symbol "JBC_SetPlayerPos"
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(4860) : error 017: undefined symbol "JBC_SetPlayerPos"
C:\Documents and Settings\Administrator\My Documents\SDRPG v.4.0\gamemodes\SDRPG.pwn(4873) : error 017: undefined symbol "JBC_SetPlayerPos"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

26 Errors.



Prvi dio skripte gdje su errori :

public PaintballEnded()
{
new string;
new name;
foreach (Player, i)
{
        if(PlayerPaintballing != 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_LIGHTBLUE, string);
            }
            SafeJBC_ResetPlayerWeapons(i);
            PlayerPaintballing = 0;
            JBC_SetPlayerPos(i, SBizzInfo,SBizzInfo,SBizzInfo);
        }
}
AnnouncedPaintballRound = 0;
    PaintballRound = 0;
return 1;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
public DollahScoreUpdate()
{
new LevScore;
foreach (Player, i)
{
LevScore = PlayerInfo;
SetPlayerScore(i, LevScore);
}
return 1;
}

public Encrypt(string[])
{
for(new x=0; x < strlen(string); x++)
  {
  string += (3^x) * (x % 15);
  if(string > (0xff))
  {
  string -= 256;
  }
  }
return 1;
}

//////////////////////////////////////////////////////////////////////////////////////////////////////////////
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(gTeam >= 1||gTeam >= 3||gTeam >= 4)
{
if (IsACopCar(vehicleid) && !ispassenger)
{
if(PlayerInfo==1||PlayerInfo==2||PlayerInfo==3||PlayerInfo==11||PlayerInfo==1||PlayerInfo==2||PlayerInfo==3||PlayerInfo==11) {}
else
{
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
JBC_SetPlayerPos(playerid, cx,  cy, cz);
}
}
if (IsNpcVehicle(vehicleid) && !ispassenger)
{
    if(PlayerInfo==100) {}
    else {
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
JBC_SetPlayerPos(playerid, cx,  cy, cz);
}
}
if (IsAnAmbulance(vehicleid) && !ispassenger)
{
    if(PlayerInfo==4||PlayerInfo==4) { }
    else
{
WantedPoints+=2; SetPlayerCriminal(playerid,255, "Kradja vozila hitne pomoci!"); }
}
        if (IsABike(vehicleid) && !ispassenger)
{
SCM(playerid,COLOR_GRAD1,"{F4630B} {ffffff}Da stavite kacigu kucajte /kaciga !");
        }
if(IsAnOwnableCar(vehicleid) && CarInfo == 1 && CarInfo == 1)
{
    if(PlayerInfo >= 1337 && AdminDuty == 1) { }
    else
    {
    new Float:cx, Float:cy, Float:cz;
    GetPlayerPos(playerid, cx, cy, cz);
    JBC_SetPlayerPos(playerid, cx, cy, cz);
}
}
}
return 1;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
public Autocruise(playerid, in)
{
new Float:vehx, Float:vehy, Float:vehz;
GetVehiclePos(GetPlayerVehicleID(playerid), vehx, vehy, vehz);
if(in == 1)
{
if(-1777 < vehy)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
{
if(GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid))
{
    SetPlayerCameraPos(i,1910.4637,-1771.8,15);
SetPlayerCameraLookAt(i,1911.2863,-1775.1614,13.3828);
}
}
    SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
    TogglePlayerControllable(playerid, 0);
    MoveObject(entrancegate, 1911.21130371, -1780.68151855, 14.15972233, 1);
SetTimerEx("Water",4000,0,"ii",playerid, 1);
}
else
{
    if(vehx != 1911.1886)
    {
JBC_SetVehiclePos(GetPlayerVehicleID(playerid), 1911.1886, vehy, vehz);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
}
TogglePlayerControllable(playerid, 1);
    SetVehicleVelocity(GetPlayerVehicleID(playerid), 0, 0.1, 0);
    SetTimerEx("Autocruise",100,0,"ii",playerid, 1);
}
}
else
{
if(-1768 < vehy)
{
    SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
    TogglePlayerControllable(playerid, 0);
    MoveObject(exitgate, 1911.21130371,-1771.97814941,14.15972233, 1);
    SetTimerEx("EndWash",1000,0,"i",playerid);
}
else
{
if(vehx != 1911.1886)
    {
JBC_SetVehiclePos(GetPlayerVehicleID(playerid), 1911.1886, vehy, vehz);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
}
TogglePlayerControllable(playerid, 1);
    SetVehicleVelocity(GetPlayerVehicleID(playerid), 0, 0.1, 0);
    SetTimerEx("Autocruise",100,0,"ii",playerid, 0);
}
}
return 1;
}


Drugi dio skripte di su errori :

//////////////////////////////////////////////////////////////////////////////////////////////////////////////
forward TextDrawregistracija1(playerid);
public TextDrawregistracija1(playerid)
{
SetPlayerInterior(playerid, 0);
PlayerPlaySound(playerid, 1185, 0.0, 0.0, 0.0);
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
TextDrawShowForPlayer(playerid, logtext0);
TextDrawShowForPlayer(playerid, logtext1);
TextDrawShowForPlayer(playerid, logtext2);
TextDrawShowForPlayer(playerid, logtext3);
TextDrawShowForPlayer(playerid, logtext4);
TextDrawShowForPlayer(playerid, logtext5);
TextDrawShowForPlayer(playerid, logtext6);
TextDrawShowForPlayer(playerid, logtext7);
JBC_SetPlayerPos(playerid, 1270.3291,-1324.8623,15.1634); SetPlayerFacingAngle(playerid, 139.7829);  <<<<<<<< OVDE
SetPlayerCameraPos(playerid, 1265.78, -1346.33, 121.22); SetPlayerCameraLookAt(playerid, 1261.66, -1343.50, 119.71);
SetPlayerWeather(playerid, 1);
new plname;
GetPlayerName(playerid, plname, sizeof(plname));
SetTimerEx("TextDrawregistracija2",5000, false, "i", playerid);
return 1;
}


Treči dio :

forward TextDrawregistracija2(playerid);
public TextDrawregistracija2(playerid)
{
    PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
    PlayerPlaySound(playerid, 1183, 0.0, 0.0, 0.0);
    TextDrawHideForPlayer(playerid, logtext0);
TextDrawHideForPlayer(playerid, logtext1);
TextDrawHideForPlayer(playerid, logtext2);
TextDrawHideForPlayer(playerid, logtext3);
TextDrawHideForPlayer(playerid, logtext4);
TextDrawHideForPlayer(playerid, logtext5);
TextDrawHideForPlayer(playerid, logtext6);
TextDrawHideForPlayer(playerid, logtext7);
SetPlayerInterior(playerid, 0);
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
SendClientMessage(playerid,0x9292D5FF,"");
    TextDrawShowForPlayer(playerid, Te0);
    TextDrawShowForPlayer(playerid, regis10);
TextDrawShowForPlayer(playerid, regis11);
TextDrawShowForPlayer(playerid, regis12);
TextDrawShowForPlayer(playerid, regis13);
TextDrawShowForPlayer(playerid, regis14);
TextDrawShowForPlayer(playerid, regis15);
TextDrawShowForPlayer(playerid, regis16);
TextDrawShowForPlayer(playerid, regis17);
TextDrawShowForPlayer(playerid, regis18);
SetPlayerFacingAngle(playerid, 139.7829);
    JBC_SetPlayerPos(playerid, 1192.6627,-1692.2067,13.1610); <<<<<<< OVDE
SetPlayerCameraPos(playerid, 1151.18, -1692.61, 34.58);
    SetPlayerCameraLookAt(playerid, 1152.99, -1697.27, 32.49);
SetPlayerWeather(playerid, 1);
new plname;
GetPlayerName(playerid, plname, sizeof(plname));
SetTimerEx("TextDrawregistracija3",7000, false, "i", playerid);
return 1;
}


ÄŒetvrti dio :

forward randomlogin(playerid);
public randomlogin(playerid)
{
            new RandomStart;
            RandomStart = random(6);
            switch(RandomStart)
            {
                  case 0:
                  {
                  JBC_SetPlayerPos(playerid, 1327.7601,-946.7955,38.3527);
  SetPlayerFacingAngle(playerid, 139.7829);
                  SetPlayerCameraPos(playerid, 1374.83, -915.02, 37.12);
                  SetPlayerCameraLookAt(playerid, 1376.45, -910.67, 38.98);
                  SetTimerEx("TextDrawpokazi",7, false, "i", playerid);
                  }
                  case 1:
                  {
                  JBC_SetPlayerPos(playerid, 1507.4445,-1661.7773,13.7969);
  SetPlayerFacingAngle(playerid, 139.7829);
                  SetPlayerCameraPos(playerid, 1456.16, -1605.29, 13.38);
                  SetPlayerCameraLookAt(playerid, 1459.40, -1609.10, 14.64);
                  SetTimerEx("TextDrawpokazi",7, false, "i", playerid);
                  }
                  case 2:
                  {
                  JBC_SetPlayerPos(playerid, 1974.0229,-1155.0980,20.9518);
  SetPlayerFacingAngle(playerid, 139.7829);
                  SetPlayerCameraPos(playerid, 1876.73, -1308.70, 91.50);
                  SetPlayerCameraLookAt(playerid, 1879.75, -1304.72, 89.44);
                  SetTimerEx("TextDrawpokazi",7, false, "i", playerid);
                  }
                  case 3:
                  {
                  JBC_SetPlayerPos(playerid, 1989.7533,-775.2012,132.1034);
  SetPlayerFacingAngle(playerid, 139.7829);
                  SetPlayerCameraPos(playerid, 1987.48, -806.35, 133.87);
                  SetPlayerCameraLookAt(playerid, 1983.35, -809.17, 133.91);
                  SetTimerEx("TextDrawpokazi",7, false, "i", playerid);
                  }
                  case 4://new
                  {
                  JBC_SetPlayerPos(playerid, 385.4012,-2031.7555,7.8359);
  SetPlayerFacingAngle(playerid, 139.7829);
                  SetPlayerCameraPos(playerid, 418.62, -1976.08, 3.44);
                  SetPlayerCameraLookAt(playerid, 414.86, -1979.39, 5.08);
                  SetTimerEx("TextDrawpokazi",7, false, "i", playerid);
                  }
                  case 5:
                  {
                  JBC_SetPlayerPos(playerid, -240.4429,2610.2747,62.7031);
  SetPlayerFacingAngle(playerid, 139.7829);
                  SetPlayerCameraPos(playerid, -174.86, 2624.77, 64.67);
                  SetPlayerCameraLookAt(playerid, -177.79, 2628.82, 64.93);
                  SetTimerEx("TextDrawpokazi",7, false, "i", playerid);
                  }
                  }
    return 1;
}


Peti dio :

if(PlayerCuffed > 0 || WantedLevel > 1)
{
PlayerInfo = 1;
PlayerInfo = 800;
    WantedPoints = 0;
WantedLevel = 0;
    JBC_SetPlayerPos(playerid, 107.2300,1920.6311,18.5208);
SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453);
SetPlayerInterior(playerid,0);
PlayerInfo = 0;
}


I TAKO JOŠ IMA DOSTA , MENI NETREBA DA VI RIJEŠITE PROBLEM NEGO SAMO DA MI OBJASNITE KAKO SE RADI . I PLS NEMOJTE MI GOVORITI DA GLEDAM POD TEMOM ERORRI I WARNINZI JER SAM TU TRAŽIO I NISAM SHVATIO KAKO DA TO RIJEŠIM NEGO SAM UMJESTO RJEŠENOG PROBLEMA DOBIO + DVA WARNINGA A ERROR NISAM IZBRISAO -.- ... TKO MI POMOGNE BITI ĆU MU ZAHVALAN , PA ETO TKO IMA DA JE DOBRA SRCA I SLOBODNOG VREMENA NEKA MI POMOGNE .. I NARAVNO UKOLIKO TREBADNE JOŠ NEKI DIO SKRIPTE STAVITI ĆU SVE U KORIST TOGA DA TAJ PROBLEM ŠTO PRIJE RIJEŠIM DA MOGU NASTAVITI RADITI ..... I PONOVO UNAPRIJED HVALA SVAKOME TKO MI POMOGNE !!!

Neke slike/video za lakse dobivanje pomoci(neobavezno): //
Stefan Lepotic
Enforcer
pre 13 godina
warning 217: loose indentation - linije ti nisu porvnate. Ili ih poravnaj ili dodaj gore #pragma tabsize 0 (ali to samo sklanja warning iz konzole)
A errori kada vidim 26 verovatno je zagrada proveri broj zagrada u tome sto si radio. Broj { i broj } mora biti isti.
A inace ako nije to, a i proveri prvo:
error 017: undefined symbol "JBC_SetPlayerPos" - To ti znaci da nije definisan, pa proveri da li imas ubacen JunkBuster, ako ga koristis vec.
warning 201: redefinition of constant/macro (symbol "sInfo") - takav warning znaci da nesto imas dva puta definisano
Blaeks_Biofor
Forum Don
pre 13 godina
ja,mislim,da,ce,pre,biti,da,mu,fali,neki,include,poledaj,warninge,na,incu,su
[LB]Almedin Hibic
Wheel Man
pre 13 godina
@Lepitic - Hvala od srca , tačno je da nisam imao ubačen JunkBuster i ubacio sam i sada imam samo 5 warninga (kao što sam imao i prije) . Stvarno puno si mi pomogao...

Ovde može LOCK

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava