Skripta koju koristim:ATHLONE , Winter Edition, Zadnja Verzija
Detaljan opis problema:Znaci editam mod i kad idem Compiler izbaci mi ovo sto cete videti dole na slici 😢
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno): http://imgur.com/a/EZA6n
[POMOC] Error
464
pregleda
4
postova
Crime Lord
Novi Član
240 / 250 XP
🌱Početnik(0)
832
Postovi:
25
Teme:
Pridružio se:Avg. 2016
1. Dec. 2016.
To je samo warning (greska u skripti) i sa tim naravno mozes pokrenuti server pa i netrebas popravjati nezz mozda si zaboravio staviti TAB ili si napravio new koji na kraju nisi koristio
EDIT: posalji linije
EDIT: posalji linije
1. Dec. 2016.
new nxtlevel = PlayerInfo[ targetid ][ xLevel ]+1,
expamount = nxtlevel*levelexp,
warns = PlayerInfo[ targetid ][ xWarn ],
level = PlayerInfo[ targetid ][ xLevel ],
exp = PlayerInfo[ targetid ][ xRespekt ];
new playersip[ 128 ];
GetPlayerIp(targetid, playersip, sizeof( playersip ) );
new weapon,
weapname,
bullets;
for( new slot = 0; slot < 13; slot++) {
GetPlayerWeaponData( targetid, slot, weapon[ slot ], bullets[ slot ] );
GetWeaponName( weapon[ slot ], weapname[ slot ], 50 );
}
SendClientMessage(playerid, 0x5BD3FFAA,"_________________________________________________");
format( globalstring, sizeof( globalstring ),"*** %s ***", ImeIgraca( targetid ) );
SendClientMessage(playerid, ATHLONE,globalstring);
format( globalstring, sizeof( globalstring ), "Aktivnost igraca u staff timu: %d minuta", PlayerInfo[ targetid ][ xStaffMin ] );
SendClientMessage( playerid, 0xF0F0F0FF, globalstring );
SendClientMessage( playerid, 0xF0F0F0FF,globalstring );
SendClientMessage( playerid, 0x5BD3FFAA,"_________________________________________________");
}
}
//------------------------------------------------------------------------------
ShowPDStats( playerid, targetid )
{
if( IsPlayerConnected( playerid ) && IsPlayerConnected( targetid ) )
{
new coordsstring;
strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
strcat( DialogStrgEx, "__________________________________________________________________\n");
format( coordsstring, sizeof( coordsstring ),"*** %s ***\n", ImeIgraca( targetid ) );
strcat( DialogStrgEx, coordsstring );
format( coordsstring, sizeof( coordsstring ), "Dao ticketa: [%d] | Oduzeo novaca preko ticketa: [%d]\n", PlayerInfo[ targetid ][ xPDStatsTicket ], PlayerInfo[ targetid ][ xPDStatsTicketMoney ] );
strcat( DialogStrgEx, coordsstring );
format( coordsstring, sizeof( coordsstring ), "Oduzeo oruzja: [%d] | Oduzeo droge: [%d]\n", PlayerInfo[ targetid ][ xTakenWeps ], PlayerInfo[ targetid ][ xTakenDrugs ] );
strcat( DialogStrgEx, coordsstring );
format( coordsstring, sizeof( coordsstring ), "Puta uhitio nekoga: [%d]\n", PlayerInfo[ targetid ][ xPDUhapsio ] );
strcat( DialogStrgEx, coordsstring );
strcat( DialogStrgEx, "__________________________________________________________________");
ShowPlayerDialog( playerid, 0, DSMSG, D_NASLOV, DialogStrgEx, "U redu", "" );
strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ));
}
}
//------------------------------------------------------------------------------
ShowAdminStats( playerid, targetid ) {
if( IsPlayerConnected( playerid ) && IsPlayerConnected( targetid ) ) {
strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
strcat( DialogStrgEx, "__________________________________________________________________\n");
format( globalstring, sizeof( globalstring ),"*** %s ***\n", ImeIgraca( targetid ) );
strcat( DialogStrgEx, globalstring );
format( globalstring, sizeof( globalstring ), "Dao banova: [%d] | Dao warnova: [%d] | Kickovao puta: [%d]\n", AI[ targetid ][ aTBan ], AI[ targetid ][ aTWarn ], AI[ targetid ][ aTKick ] );
strcat( DialogStrgEx, globalstring );
format( globalstring, sizeof( globalstring ), "Oduzeo novca: [%d] | Odgovorenih PMova: [%d] | Stavio u zatvor/areu: [%d]\n", AI[ targetid ][ aTCharge ], AI[ targetid ][ aTPM ], AI[ targetid ][ aTJail ] );
strcat( DialogStrgEx, globalstring );
format( globalstring, sizeof( globalstring ), "Unbanovao puta: [%d] | Unwarnovao puta: [%d] | Unjailovao puta: [%d]\n", AI[ targetid ][ aTUnban ] , AI[ targetid ][ aTUnwarn ] , AI[ targetid ][ aTUnjail ] );
strcat( DialogStrgEx, globalstring );
strcat( DialogStrgEx, "__________________________________________________________________");
ShowPlayerDialog( playerid, 0, DSMSG, D_NASLOV, DialogStrgEx, "U redu", "" );
strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ));
}
}
//------------------------------------------------------------------------------
public BackupClear( playerid, calledbytimer ) {
if( IsPlayerConnected( playerid ) ) {
if( GetFactionType( playerid ) == ORG_TIP_PD ) {
if( GetPVarInt( playerid, "RequestingBackup" ) == 1 ) {
foreach( Player, i) {
if( IsPlayerConnected(i)) {
if( OI[ PlayerInfo[ i ][ xClan ] ][ oTip ] == ORG_TIP_PD ) {
Dimi_DisablePlayerCheckpoint( i );
}
}
}
if( calledbytimer != 1 ) {
SCM( playerid, 0x8D8DFF00, "Vase pojacanje je izbrisano." );
}
else {
SCM( playerid, 0x8D8DFF00, "Vas zahtev za pojacanje je izbrisano automatksi." );
}
SetPVarInt( playerid, "RequestingBackup", 0 );
}
else
{
if(calledbytimer != 1 ) {
GRESKA( playerid, "Nemate aktivan zahtev za pojacanje!");
}
}
}
}
return 1;
}
//------------------------------------------------------------------------------
public OnPlayerTakeDamage( playerid, issuerid, Float:amount, weaponid, bodypart ) {
if( issuerid != INVALID_PLAYER_ID && issuerid != INVALID_PLAYER_ID && amount == 0 && weaponid == 0 && bodypart == 3 ) {
format( globalstring, sizeof( globalstring ), "| A: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_athlone"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;
Dimi_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( weaponid <= 42 ) {
new Float:takeHealth = antiCheatCS[ playerid ][ TrueHealth ] - WeaponDamage[ weaponid ][ bodypart - 3 ];
Dimi_SetPlayerHealth( playerid, takeHealth );
}
}*/
//printf( "%s je naneo %.0f demidza %s-u, oruzje: %d, deo tela: %d", ImeIgraca( issuerid ), amount, ImeIgraca( playerid ), weaponid, bodypart );
}
return 1;
}
public TazovanTajmer( playerid ) {
if( PlayerCuffed[ playerid ] == 1 ) {
PlayerCuffed[ playerid ] = 0;
SetPVarInt( playerid, "CuffTimerCalled", 0 );
TogglePlayerControllable( playerid, true );
GameTextForPlayer( playerid, "~y~Tazer zavrsen", 5000, 3 );
ClearAnimations( playerid );
Dimi_KillTimer( TazerTimer[ playerid ] );
}
return 1;
}
/*/------------------------------------------------------------------------------
Float:GetDistanceBetweenPlayers(p1,p2)
{
new Float:x1,
Float:y1,
Float:z1,
Float:x2,
Float:y2,
Float:z2;
if(!IsPlayerConnected(p1) || !IsPlayerConnected(p2))
{
return -1.00;
}
GetPlayerPos(p1,x1,y1,z1);
GetPlayerPos(p2,x2,y2,z2);
return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
}
//------------------------------------------------------------------------------
GetClosestPlayer(p1)
{
new Float:dis,
Float:dis2,
player;
player = -1;
dis = 99999.99;
foreach( Player, x)
{
if( IsPlayerConnected(x))
{
if(x != p1)
{
dis2 = GetDistanceBetweenPlayers(x,p1);
if(dis2 < dis && dis2 != -1.00)
{
dis = dis2;
player = x;
}
}
}
}
return player;
}*/Ovde se stvaraju problemi
exp = PlayerInfo[ targetid ][ xRespekt ]; ovde je prva greska, pa imas na ovamo jos ..
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava