Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: .Drakula. poslato Septembar 04, 2018, 21:29:37 POSLE PODNE

Naslov: Prebacivanje na Pawn_CMD
Poruka od: .Drakula. poslato Septembar 04, 2018, 21:29:37 POSLE PODNE
Problem(error/warning): Koristio sam y_commands, resio sam da predjem na Pawn_CMD, Sve sam lepo skinuo, ubacio gde treba i inkludovao ,pratio sam ovaj tutorijal http://balkan-samp.com/forum/index.php?topic=125051.0
Dio skripte: [pawn]
//Ovo sam zamenio
FUNCTION: OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(isnull(cmdtext))
   {
       return 0;
   }
   if(!success)
   {
      Error(playerid, "Upisali ste komandu koja ne postoji.");
      return 1;
   }
    return 1;
}
//U ovo
FUNCTION: OnPlayerCommandPerformed(playerid, cmd[], params[], result, flags)
{
   if(result == -1)
   {
      Error(playerid, "Upisali ste komandu koja ne postoji.");
      return 0;
   }
    return 1;
}




//Ovo sam zamenio
public OnPlayerCommandReceived(playerid, cmdtext[])

//U ovo
public OnPlayerCommandReceived(playerid, cmd[], params[], flags)


//Ovo sam izbrisao
public OnPlayerCommandText(playerid, cmdtext[])
{
   if(isnull(cmdtext))
   {
       return 0;
   }
   return 1;
}
[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [21:06:38] [debug] Run time error 19: "File or function is not found"
[21:06:38] [debug]  PC_Init
[21:06:38] [debug] Run time error 19: "File or function is not found"
[21:06:38] [debug]  PC_Init

Slika/video ingame problema(obavezno ako je ingame problem): link slike
Naslov: Odg: Prebacivanje na Pawn_CMD
Poruka od: Bespomocni Skripter poslato Septembar 04, 2018, 21:40:16 POSLE PODNE
Nije ti ucitalo plugin :]
Naslov: Odg: Prebacivanje na Pawn_CMD
Poruka od: .Drakula. poslato Septembar 04, 2018, 21:41:39 POSLE PODNE
Jesam, nije to
Naslov: Odg: Prebacivanje na Pawn_CMD
Poruka od: Bespomocni Skripter poslato Septembar 04, 2018, 21:42:16 POSLE PODNE
Editovao sam text gore, posalji server_log (samo zadnji, znaci izbrisi ceo i posalji zadnji ako ne umes zadnje iskopirat -_-)
Naslov: Odg: Prebacivanje na Pawn_CMD
Poruka od: .Drakula. poslato Septembar 04, 2018, 21:46:58 POSLE PODNE


----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[21:45:18] filterscripts = ""  (string)
[21:45:18]
[21:45:18] Server Plugins
[21:45:18] --------------
[21:45:18]  Loading plugin: crashdetect
[21:45:18]   CrashDetect plugin 4.19.1
[21:45:18]   Loaded.
[21:45:18]  Loading plugin: streamer
[21:45:18]

*** Streamer Plugin v2.9.3 by Incognito loaded ***

[21:45:18]   Loaded.
[21:45:18]  Loading plugin: sscanf
[21:45:18]

[21:45:18]  ===============================

[21:45:18]       sscanf plugin loaded.     

[21:45:18]          Version:  2.8.2       

[21:45:18]    (c) 2012 Alex "Y_Less" Cole 

[21:45:18]  ===============================

[21:45:18]   Loaded.
[21:45:18]  Loading plugin: Pawn.CMD.dll
[21:45:18]   Failed.
[21:45:18]  Loaded 3 plugins.

[21:45:18]
[21:45:18] Filterscripts
[21:45:18] ---------------
[21:45:18]   Loaded 0 filterscripts.

[21:45:18] [debug] Run time error 19: "File or function is not found"
[21:45:18] [debug]  PC_Init
[21:45:18] [debug] Run time error 19: "File or function is not found"
[21:45:18] [debug]  PC_Init
[21:45:18] Script[gamemodes/BSD.amx]: Run time error 19: "File or function is not found"
[21:45:18] Number of vehicle models: 0

Naslov: Odg: Prebacivanje na Pawn_CMD
Poruka od: Bespomocni Skripter poslato Septembar 04, 2018, 21:47:50 POSLE PODNE
Makni .dll, valjda jebe jer ima dve tacke :P (ili preimenuj file u pawncmd.dll xD)
Naslov: Odg: Prebacivanje na Pawn_CMD
Poruka od: .Drakula. poslato Septembar 04, 2018, 21:54:20 POSLE PODNE
Hvala, mora u server.cfg da bude "PawnCMD" ,sada radi. :)