Zaključano

[Pomoc]Kapija

Započeo [JB:RP]Esse
pre 12 godina
306
pregleda
5
postova
Ova tema je zaključana. Samo moderatori i administratori mogu odgovarati.
Ronw
Shot Caller
pre 12 godina
Skripta koju koristim:Moja
Detaljni opis problema: Znaci stvara mi errore na ovome dijelu neznam zasto nevalja pa moze neko pogledat...znaci kad ukuca netko granica ako je kraj jedne kapije da mu otvori tu a ako je kraj druge da mu otvori drugu..
Dio skripte:
CMD:granica(playerid, params[])
{
new hIme;
RPIme(playerid, hIme);
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1625.0999755859, 18.10000038147, 36.599998474121)) //granica
{
    MoveDynamicObject(granicalslv1, 1625.0999755859, 18.10000038147, 36.599998474121, 2.8, 0, 25, 21);
    SetTimer("zgranicalslv1", 12000, 0);
        SCM(playerid, BELA, "[Los Santos]: Ugodan boravak vam zelimo u gradu Las Venturas.");
}
else return SCM(playerid, CRVENA, "Niste na granici.");
  }
    else if(IsPlayerInRangeOfPoint(playerid, 7.0, 1629.8000488281, 1.7000000476837, 36.599998474121)) //granica
{
    MoveDynamicObject(granicalvls2, 1629.8000488281, 1.7000000476837, 36.599998474121, 0.8, 0, 335.00061035156, 20.994873046875);
        SCM(playerid, BELA, "[Las Venturas]: Ugodan boravak vam zelimo u gradu Los Santos.");
}
      else return SCM(playerid, CRVENA, "Niste na granici.");
      }
return 1;
}


evo kod errora
: warning 209: function "cmd_granica" should return a value
C:\Users\Pc\Desktop\Travmake\NL\gamemodes\NLRPGv3.pwn(78582) : error 010: invalid function or declaration
C:\Users\Pc\Desktop\Travmake\NL\gamemodes\NLRPGv3.pwn(78587) : error 010: invalid function or declaration
C:\Users\Pc\Desktop\Travmake\NL\gamemodes\NLRPGv3.pwn(78589) : error 010: invalid function or declaration

Slike/Video://
Blaeks_Biofor
Forum Don
pre 12 godina
postavi tacne linije errora
Ronw
Shot Caller
pre 12 godina
evo napisao sam "Ovde erorr " di izbacuje errore

CMD:granica(playerid, params[])
{
new hIme;
RPIme(playerid, hIme);
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1625.0999755859, 18.10000038147, 36.599998474121)) //granica
{
    MoveDynamicObject(granicalslv1, 1625.0999755859, 18.10000038147, 36.599998474121, 2.8, 0, 25, 21);
    SetTimer("zgranicalslv1", 12000, 0);
        SCM(playerid, BELA, "[Los Santos]: Ugodan boravak vam zelimo u gradu Las Venturas.");
}
else return SCM(playerid, CRVENA, "Niste na granici.");
  }
    else if(IsPlayerInRangeOfPoint(playerid, 7.0, 1629.8000488281, 1.7000000476837, 36.599998474121)) //granica  OVDE ERROR
{
    MoveDynamicObject(granicalvls2, 1629.8000488281, 1.7000000476837, 36.599998474121, 0.8, 0, 335.00061035156, 20.994873046875);
        SCM(playerid, BELA, "[Las Venturas]: Ugodan boravak vam zelimo u gradu Los Santos.");
}
      else return SCM(playerid, CRVENA, "Niste na granici."); // OVDE ERROR
      }
return 1;  // OVDE ERROR
}
[WW]ivan
Kingpin
pre 12 godina
aj probaj ovako
CMD:granica(playerid, params[])
{
new hIme;
RPIme(playerid, hIme);
if(!IsPlayerInRangeOfPoint(playerid, 7.0, 1625.0999755859, 18.10000038147, 36.599998474121)) return SCM(playerid, -1, "Nisi na granici");
{
    MoveDynamicObject(granicalslv1, 1625.0999755859, 18.10000038147, 36.599998474121, 2.8, 0, 25, 21);
    SetTimer("zgranicalslv1", 12000, 0);
        SCM(playerid, BELA, "[Los Santos]: Ugodan boravak vam zelimo u gradu Las Venturas.");
}
    else if(!IsPlayerInRangeOfPoint(playerid, 7.0, 1629.8000488281, 1.7000000476837, 36.599998474121)) return SCM(playerid, -1, "Nisi na granici");
{
    MoveDynamicObject(granicalvls2, 1629.8000488281, 1.7000000476837, 36.599998474121, 0.8, 0, 335.00061035156, 20.994873046875);
        SCM(playerid, BELA, "[Las Venturas]: Ugodan boravak vam zelimo u gradu Los Santos.");
}
return 1;
}
Ronw
Shot Caller
pre 12 godina
opet ova 2 errora ali samo u jednom redu

(78593) : error 029: invalid expression, assumed zero
C:\Users\Pc\Desktop\Travmake\NL\gamemodes\NLRPGv3.pwn(78593) : warning 215: expression has no effect
C:\Users\Pc\Desktop\Travmake\NL\gamemodes\NLRPGv3.pwn(78593) : error 001: expected token: ";", but found "if"

CMD:granica(playerid, params[])
{
new hIme;
RPIme(playerid, hIme);
if(!IsPlayerInRangeOfPoint(playerid, 7.0, 1625.0999755859, 18.10000038147, 36.599998474121)) return SCM(playerid, -1, "Nisi na granici");
{
    MoveDynamicObject(granicalslv1, 1625.0999755859, 18.10000038147, 36.599998474121, 2.8, 0, 25, 21);
    SetTimer("zgranicalslv1", 12000, 0);
        SCM(playerid, BELA, "[Los Santos]: Ugodan boravak vam zelimo u gradu Las Venturas.");
}
    else if(!IsPlayerInRangeOfPoint(playerid, 7.0, 1629.8000488281, 1.7000000476837, 36.599998474121)) return SCM(playerid, -1, "Nisi na granici"); // OVDE ERROR !!
{
    MoveDynamicObject(granicalvls2, 1629.8000488281, 1.7000000476837, 36.599998474121, 0.8, 0, 335.00061035156, 20.994873046875);
        SCM(playerid, BELA, "[Las Venturas]: Ugodan boravak vam zelimo u gradu Los Santos.");
}
return 1;
}

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava