Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Claus poslato Jul 12, 2019, 21:29:02 POSLE PODNE

Naslov: Oko Weapon-Configa
Poruka od: Claus poslato Jul 12, 2019, 21:29:02 POSLE PODNE
Problem(error/warning): Ne znam kako da resim ove errore. Ako bi mogao neko da mi pomogne, hvala unapred. Probao sam da ubacim Damage Informer i ovi errori su izasli. Koristim San Marino mod. Ako treba jos nesto da dodam, napisite.
Dio skripte: /
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //
Slika/video ingame problema(obavezno ako je ingame problem): http://prntscr.com/oe9m55
Naslov: Odg: Oko Weapon-Configa
Poruka od: imnaithan poslato Jul 12, 2019, 23:22:37 POSLE PODNE
http://balkan-samp.com/forum/index.php?topic=129981.0
Naslov: Odg: Oko Weapon-Configa
Poruka od: Claus poslato Jul 12, 2019, 23:40:28 POSLE PODNE
Citat: imnaithan poslato Jul 12, 2019, 23:22:37 POSLE PODNE
http://balkan-samp.com/forum/index.php?topic=129981.0
Nema za sve errore.
Naslov: Odg: Oko Weapon-Configa
Poruka od: Muma poslato Jul 13, 2019, 00:10:26 PRE PODNE
Ala si objasnio šta je problem, svaka čast!

Daj kopiraj sve includse kako si definisao, ovo pokazuje da imaš 2x iste funkcije ili šta već
Naslov: Odg: Oko Weapon-Configa
Poruka od: Claus poslato Jul 13, 2019, 12:09:50 POSLE PODNE
Citat: mumitza. poslato Jul 13, 2019, 00:10:26 PRE PODNE
Ala si objasnio šta je problem, svaka čast!

Daj kopiraj sve includse kako si definisao, ovo pokazuje da imaš 2x iste funkcije ili šta već
[pawn]#include <a_samp>
#include <weapon-config>
#include <SKY>
#if defined _ALS_OnPlayerGiveDamage
   #undef OnPlayerGiveDamage
#else
   #define _ALS_OnPlayerGiveDamage
#endif
#define OnPlayerGiveDamage NULL_OnPlayerGiveDamage
#if defined NULL_OnPlayerGiveDamage
   forward NULL_OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart);
#endif
#if defined _ALS_OnPlayerTakeDamage
   #undef OnPlayerTakeDamage
#else
   #define _ALS_OnPlayerTakeDamage
#endif
#define OnPlayerTakeDamage NULL_OnPlayerTakeDamage
#if defined NULL_OnPlayerTakeDamage
   forward NULL_OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart);
#endif
#include <a_objects>
#include <streamer>
#include <sscanf2>
#include <YSI\y_ini>
#include <YSI\y_iterate>
#include <YSI\y_timers>
#include <utils>
#include <zcmd>
#include <newsamp>
#include <progress2>
#include <mapandreas>
#include <mSelection>
#include <eSelection>
#include <GetVehicleColor>
#include <dini>
#include "MythwilleMaps.pwn"[/pawn]

[pawn]public OnPlayerDamage( &playerid, &Float:amount, &issuerid, &weapon, &bodypart ) {
   if( issuerid != INVALID_PLAYER_ID && issuerid != INVALID_PLAYER_ID && amount == 0 && weapon == 0 && bodypart == 3 ) {
       format( globalstring, sizeof( globalstring ), "|| M:AC || %s je kickovan sa servera. Razlog: "col_white"Command kill", ImeIgraca( issuerid ) );
      AdminPoruka( SVETLOCRVENA, globalstring );
      Kickovanje( issuerid, ""col_white"Ti si kickovan sa servera. Razlog: "col_ig"Command kill");
          return 0;
   }
   
   if( issuerid != INVALID_PLAYER_ID  ) {
      if( OI[ PlayerInfo[ issuerid ][ xClan ] ][ oTip ] == ORG_TIP_PD && !IsPlayerInAnyVehicle( issuerid ) && !IsPlayerInAnyVehicle( playerid ) && GetWeapon( issuerid ) == 23 && ImaTazer[ issuerid ] == true && !AdminDuty[ playerid ] ) {
          if( GetFactionType( playerid ) == ORG_TIP_PD ) return SCM( issuerid, CRVENA, "Ne mozes tazovati PD!" );

         new Float:Pos[ 3 ];
         GetPlayerPos( playerid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] );
         if( IsPlayerInRangeOfPoint( issuerid, 10.0, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] ) ) {

            format( globalstring, sizeof( globalstring ), "%s puca tazerom na %s-a i pogadja ga.", ImeIgraca( issuerid ), ImeIgraca( playerid ) );
            PorukaRadius( 20.0, issuerid, globalstring, LJUBICASTA );
            TogglePlayerControllable( playerid, false );

                if( Maskuse[ playerid ] == true ) {
                  SetPlayerName( playerid, RealName[ playerid ] );
               Maskuse[ playerid ] = false;
            }

            PlayerCuffed[ playerid ] = 1;
            DjoLe_SetPlayerHealth( playerid, 50 );
            SetPVarInt( playerid, "CuffTimerCalled", 1 );
            TazerTimer[ playerid ] = SetTimerEx("TazovanTajmer", 15000, false, "i", playerid );
            OnePlayAnim( playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0 );
            return 0;
         }
        }
       
        if( NaDmEventu[ playerid ] == false && WARPInfo[ playerid ][ WARIgrac ] == -1 && !AdminDuty[ playerid ] && PlayerCuffed[ playerid ] == 0 ) {
           if( weapon <= 42 ) {
              new Float:takeHealth = antiCheatCS[ playerid ][ TrueHealth ] - WeaponDamage[ weapon ][ bodypart - 3 ];
              DjoLe_SetPlayerHealth( playerid, takeHealth );
         }
      }
      
      printf( "%s je naneo %.0f demidza %s-u, oruzje: %d, deo tela: %d", ImeIgraca( issuerid ), amount, ImeIgraca( playerid ), weapon, bodypart );
   }
   return 1;
}
[/pawn]
Naslov: Odg: Oko Weapon-Configa
Poruka od: Claus poslato Jul 14, 2019, 13:09:29 POSLE PODNE
BUMP... Neko?
Naslov: Odg: Oko Weapon-Configa
Poruka od: Riv3R4 poslato Jul 14, 2019, 13:21:45 POSLE PODNE
ovdje imas 1 error ostalo su warning , eh taj error ces rijesiti ako je SM mod samo dodaj ovo

IsMeleeWeapon(weaponid)
{
switch(weaponid)
{
case 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15: return true;
}
return false;
}


a za ove warninge nisam ih skontao moras mi dati tacne linije gdje ih izbacuje ako ih izbacuje uopste na nekoj konkretnoj liniji a ne na dnu koda.
Naslov: Odg: Oko Weapon-Configa
Poruka od: Claus poslato Jul 14, 2019, 13:25:00 POSLE PODNE
Citat: Riv3R4 poslato Jul 14, 2019, 13:21:45 POSLE PODNE
ovdje imas 1 error ostalo su warning , eh taj error ces rijesiti ako je SM mod samo dodaj ovo

IsMeleeWeapon(weaponid)
{
switch(weaponid)
{
case 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15: return true;
}
return false;
}

Ima vec u skripti

a za ove warninge nisam ih skontao moras mi dati tacne linije gdje ih izbacuje ako ih izbacuje uopste na nekoj konkretnoj liniji a ne na dnu koda.
Naslov: Odg: Oko Weapon-Configa
Poruka od: Riv3R4 poslato Jul 14, 2019, 13:26:25 POSLE PODNE
pardoniram nisam procitao, onda slobodno taj iz skripte mozes staviti pod comment znakove , nemoj brisat mozda ti nekad zatreba /* */