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
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]
BUMP... Neko?
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.
pardoniram nisam procitao, onda slobodno taj iz skripte mozes staviti pod comment znakove , nemoj brisat mozda ti nekad zatreba /* */