Nece mod da se ucita

Započeo Manuel23, Jun 05, 2020, 11:39:40 PRE PODNE

prethodna tema - sledeća tema

0 članova i 7 gostiju pregledaju ovu temu.

Problem(error/warning): vaš odgovorPa kada upalim samp sever pise mi Script[gamemodes/ONako.amx]: Run time error 17: "Invalid/unsupported P-code file format"
i Failed to load 'gamemodes/ONako.amx' script no to je pisalo nakon jedne cmd koje sam dodo tocnije na pocetku dodavanja admin sistema kada sam dodo cmd make admin stavit cu u dio skripte
Dio skripte: [ pawn ]vaš odgovor[ /pawn ]//=========================[ADMIN SISTEM]==================================================//
CMD:makeadmin(playerid,params[])
{
   if(IsPlayerAdmin(playerid))
{
new targetid,level;
if(sscanf(params,"ud",targetid,level)) return SendclientMessage(playerid,-1,"Koristi:/makeadmin [ID] [Admin level]");
if(IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,"Igrac nije konektan na server!");
if(level >7 || level < 1) return SendClientMessage, -1,"Maskimalan level admina je 7,a namanji je 1!");
new str[100],str1[100];
format(str,sizeof(str),"Postavili ste admin level %d igracu %s!",level,GetName(targetid));
format(str1,sizeof(str1),"Admin %s ti je dao admin level %d!",GetName(targetid),level);
SendClientMessage(playerid,-1,str);
SendClientMessage(targetid,-1,str1);
PlayerInfo[targetid][pAdmin] = level;
}
else
{
SendClientMessage(playerid,-1,"Niste ovlasceni!");
}
return 1;
}
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]vaš odgovor[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): link slike

Pokrenuo si mod sa errorima

[pawn]
CMD:makeadmin(playerid,params[])
{
      if(IsPlayerAdmin(playerid))
   {
      new targetid,level;
      if(sscanf(params,"ud",targetid,level)) return SendClientMessage(playerid,-1,"Koristi:/makeadmin [ID] [Admin level]");
      if(IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,"Igrac nije konektan na server!");
      if(level >7 || level < 1) return SendClientMessage(playerid, -1,"Maskimalan level admina je 7,a namanji je 1!");
      new str[100],str1[100];
      format(str,sizeof(str),"Postavili ste admin level %d igracu %s!",level,GetName(targetid));
      format(str1,sizeof(str1),"Admin %s ti je dao admin level %d!",GetName(targetid),level);
      SendClientMessage(playerid,-1,str);
      SendClientMessage(targetid,-1,str1);
      PlayerInfo[targetid][pAdmin] = level;
   }
   else
   {
      SendClientMessage(playerid,-1,"Niste ovlasceni!");
   }
   return 1;
}
[/pawn]

Umesto te tvoje CMD, ubaci ovu moju i Compile Mod, ako nema ni jednog error-a onda upali srv

Citat: Manuel23 poslato Jun 05, 2020, 11:39:40 PRE PODNE
Problem(error/warning): vaš odgovorPa kada upalim samp sever pise mi Script[gamemodes/ONako.amx]: Run time error 17: "Invalid/unsupported P-code file format"
i Failed to load 'gamemodes/ONako.amx' script no to je pisalo nakon jedne cmd koje sam dodo tocnije na pocetku dodavanja admin sistema kada sam dodo cmd make admin stavit cu u dio skripte
Dio skripte: [ pawn ]vaš odgovor[ /pawn ]//=========================[ADMIN SISTEM]==================================================//
CMD:makeadmin(playerid,params[])
{
   if(IsPlayerAdmin(playerid))
{
new targetid,level;
if(sscanf(params,"ud",targetid,level)) return SendclientMessage(playerid,-1,"Koristi:/makeadmin [ID] [Admin level]");
if(IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,"Igrac nije konektan na server!");
if(level >7 || level < 1) return SendClientMessage, -1,"Maskimalan level admina je 7,a namanji je 1!");
new str[100],str1[100];
format(str,sizeof(str),"Postavili ste admin level %d igracu %s!",level,GetName(targetid));
format(str1,sizeof(str1),"Admin %s ti je dao admin level %d!",GetName(targetid),level);
SendClientMessage(playerid,-1,str);
SendClientMessage(targetid,-1,str1);
PlayerInfo[targetid][pAdmin] = level;
}
else
{
SendClientMessage(playerid,-1,"Niste ovlasceni!");
}
return 1;
}
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]vaš odgovor[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): link slike

Ovo se inače dešava kada server pokušaš startati dok se mod  jošuvijek compile-a, ugasi server, pusti compile do kraja i onda ga startaj :)


Citat: Manuel23 poslato Jun 05, 2020, 11:50:54 PRE PODNE
opet isto
Posalji sta ti izbaci kad Compile Mod, jel imas errore uopste?


Citat: Manuel23 poslato Jun 05, 2020, 12:53:21 POSLE PODNE
kad stavim tvoje imam errore
KOje? Posalji errore i linije gde ti izlaze

Probaj ovo
[pawn]
CMD:makeadmin(playerid,params[])
{
   if(IsPlayerAdmin(playerid))
  {
       new targetid,level;
       if(sscanf(params,"ud",targetid,level)) return SendclientMessage(playerid,-1,"Koristi:/makeadmin [ID] [Admin level]");
       if(IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,"Igrac nije konektan na server!");
       if(level >7 || level < 1) return SendClientMessage, -1,"Maskimalan level admina je 7,a namanji je 1!");
       new str[100],str1[100];
       format(str,sizeof(str),"Postavili ste admin level %d igracu %s!",level,GetName(targetid));
       format(str1,sizeof(str1),"Admin %s ti je dao admin level %d!",GetName(targetid),level);
       SendClientMessage(playerid,-1,str);
       SendClientMessage(targetid,-1,str1);
      PlayerInfo[targetid][pAdmin] = level;
  } else {
    SendClientMessage(playerid,-1,"Niste ovlasceni!");
}
    return 1;
}
[/pawn]

C:\Users\Korisnik\Desktop\Skriptanje od 0 YT\pawno\include\zcmd.inc(18) : warning 201: redefinition of constant/macro (symbol "COMMAND:%1(%2)")
C:\Users\Korisnik\Desktop\Skriptanje od 0 YT\pawno\include\zcmd.inc(21) : warning 201: redefinition of constant/macro (symbol "CMD:%1(%2)")
C:\Users\Korisnik\Desktop\Skriptanje od 0 YT\gamemodes\ONako.pwn(65) : error 001: expected token: "{", but found "-identifier-"
C:\Users\Korisnik\Desktop\Skriptanje od 0 YT\gamemodes\ONako.pwn(70) : error 001: expected token: "-identifier-", but found "public"
C:\Users\Korisnik\Desktop\Skriptanje od 0 YT\gamemodes\ONako.pwn(325) : error 017: undefined symbol "GetName"
C:\Users\Korisnik\Desktop\Skriptanje od 0 YT\gamemodes\ONako.pwn(326) : error 017: undefined symbol "GetName"
C:\Users\Korisnik\Desktop\Skriptanje od 0 YT\gamemodes\ONako.pwn(329) : error 017: undefined symbol "PlayerInfo"
C:\Users\Korisnik\Desktop\Skriptanje od 0 YT\gamemodes\ONako.pwn(329) : warning 215: expression has no effect
C:\Users\Korisnik\Desktop\Skriptanje od 0 YT\gamemodes\ONako.pwn(329) : error 001: expected token: ";", but found "]"
C:\Users\Korisnik\Desktop\Skriptanje od 0 YT\gamemodes\ONako.pwn(329) : error 029: invalid expression, assumed zero
C:\Users\Korisnik\Desktop\Skriptanje od 0 YT\gamemodes\ONako.pwn(329) : fatal error 107: too many error messages on one line





Citat: Manuel23 poslato Jun 05, 2020, 18:44:19 POSLE PODNE
kako to mislis gdje

ispod cega????
gde se nalazi???
PAWN DEVELOPER - 2016

KAD JE NAJTEZE BUDI CVRST KAO CELIK
I SJAJI KAO NAJSKUPLJI DIJAMANT

VER MONT COMMUNITY

Kontakti:
FB: https://www.facebook.com/zmajko.youtube
IG: https://www.instagram.com/zmajkobrate