Komanda /port

Započeo Chris Edwards, Jul 01, 2019, 18:16:52 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Koristim mod od Jamaice, i bukvalno ukucam /port ne radi ne izbacuje mi da nema komande ono nego jednostavno se nista ne desava
Deo skripte: [pawn]CMD:port(playerid,params[])
{
    if(UZoni[playerid] == 1) return Error(playerid, "U DM zoni si");
    if(UFZoni[playerid] == 1) return Error(playerid, "U F zoni si");
    if(RentAuto(GetPlayerVehicleID(playerid)) && Rentao[playerid] == 9999 && GetPlayerState(playerid) == PL_ST_DRIVER) return Error(playerid, "Ne mozes da radis BA!");
   if(PI[playerid][pAdmin] < 1 && PI[playerid][pSupporter] < 1 && PI[playerid][pGM] < 1 && PI[playerid][pPromoter] < 1 && PI[playerid][pBETester] < 1 && PI[playerid][pYouTuber] < 1) return Error(playerid, "Niste ovlasceni.");
   if(TV[playerid] == 1) return Error(playerid, "Ne mozes to, upaljen ti je tv!");
   if(PI[playerid][pWanted] > 0) return Error(playerid, "Ne mozes to, trazen si.");
   if(PisanjeJok[playerid] == 1) return Error(playerid, "Ne mozes to u ovom momentu.");
   if(PetSec == 1 || trazimb[playerid] == 1) return Error(playerid, "Ne mozes dok se ne nadje moneybag!");
   if(SupporterDuty[playerid] == 0 && PI[playerid][pSupporter] == 1) return Error(playerid, "Moras biti na duznosti kao supporter!");
   if(PI[playerid][pJailTime] > 0) return Error(playerid, "Ne mozes to, zatvoreni ste.");
   if(Tazovan[playerid] > 0) return Error(playerid, "Ne mozes to, sokiran si.");
   if(Zavezan[playerid] > 0 || Ranjen[playerid] > 0 || Tie[playerid] > 0) return Error(playerid, "Ne mozes to.");
   if(Tie[playerid] > 0) return Error(playerid, "Zavezan si, ne mozes to!");
   if(PI[playerid][pWanted] > 0) return Error(playerid, "Imas Wanted level");
   if(PI[playerid][pJailed] > 0) return Error(playerid, "Ne mozes to, zatvoren si.");
   if(PlayerCP[playerid] > 0) return Error(playerid, "Ne mozes to, na eventu si.");
   if(UWaru[playerid] == 1) return Error(playerid, "Ne mozes to.");
   if(StreljanaP[playerid] > 0) return Error(playerid, "U streljani si!");
   if(PolicajacNaDuznosti[playerid] == 1) return Error(playerid, "Ne mozes to, na duznosti si!");
   if(TPTime[playerid] == 1 && PI[playerid][pAdmin] < 1) return Error(playerid, "Moras sacekati 20 sekundi!");
   if(GetPlayerInterior(playerid) > 0) return Error(playerid, "U interioru si");
   if(PosaoDuznost[playerid] > 0 || TaxiDuty[playerid] > 0)
   {
       if(PI[playerid][pAdmin] < 5)
      {
         Error(playerid, "Ne mozes to, na duznosti si posla!");
         return true;
      }
   }
   if(PizzaD[playerid] > 0 || AtmD[playerid] != 9999 || KomaracP[playerid] > 0 || KosacP[playerid] > 0 || PogrCP[playerid] > 0 || RaznPosao[playerid] > 0 || Lovi[playerid] > 0 || SvercMafija[playerid] > 0 || DostavljaCement[playerid] > 0 || PirRadi[playerid] > 0 || BusRadi[playerid] > 0 ||
   ElekRadi[playerid] > 0 || PoljoprivrednikRadi[playerid] > 0 ||  KamRadi[playerid] > 0 || RibarRadi[playerid] > 0 || Kamion[playerid] > 0 || Smecari[playerid] > 0 || PilotRadi[playerid] > 0 || CistiS[playerid] > 0 || KosacCP[playerid] > 0 || ADRadi[playerid] > 0)
   {
      if(PI[playerid][pAdmin] < 5)
      {
         Error(playerid, "Pokrenut ti je posao, ne mozes to! (/stopposao)");
         return true;
      }
   }
   strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
       for( new i = 0; i < MAX_APORTS; i++ ) {
      if( aportInfo[ i][aportCreated ] == 1 ) {
         format( DialogStrgEx, sizeof( DialogStrgEx ), "%s%s\n", DialogStrgEx, aportInfo[ i][aportName ] );
      }
   }
   SPD( playerid, dialog_SELECTAPORT, DSL, "Jamaica", DialogStrgEx, D_ODABERI, D_ODUSTANI );
   return true;
}[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]Nema[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): Ne treba



ne moze da ti izbaci komandu jer nemas nijedan kreiran port u scriptfiles.
• Website: www.vasic.dev
Web Development & Cyber Security

[pawn]strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
       for( new i = 0; i < MAX_APORTS; i++ ) {
      if( aportInfo[ i][aportCreated ] == 1 ) {
         format( DialogStrgEx, sizeof( DialogStrgEx ), "%s%s\n", DialogStrgEx, aportInfo[ i][aportName ] );
      }
   }[/pawn]
provjeri jel imaš kreirane portove, jer vjrv se kreiraju, nema ih postavljenih u skripti, isto vidi jel ima neka komanda za kreiranje portova pa pokušaj