[POMOC]CMD Sneg


Započeo Blaya97, Novembar 13, 2016, 17:19:26 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Athlone
Detaljan opis problema:Kada ukcuam cmd /sneg ne pada sneg na serveru
Dio skripte:Pawno
Neke slike/video za lakse dobivanje pomoci(neobavezno)
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[01:44:32] 
[01:44:32] Server Plugins
[01:44:32] --------------
[01:44:32]  Loading plugin: sscanf
[01:44:32] 

[01:44:32]  ===============================

[01:44:32]       sscanf plugin loaded.     

[01:44:32]          Version:  2.8.1        

[01:44:32]    (c) 2012 Alex "Y_Less" Cole  

[01:44:32]  ===============================

[01:44:32]   Loaded.
[01:44:32]  Loading plugin: crashdetect
[01:44:33]   CrashDetect v4.15.1 is OK.
[01:44:33]   Loaded.
[01:44:33]  Loading plugin: streamer
[01:44:33] 

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

[01:44:33]   Loaded.
[01:44:33]  Loading plugin: MapAndreas
[01:44:33]   Loaded.
[01:44:33]  Loaded 4 plugins.

[01:44:33] 
[01:44:33] Filterscripts
[01:44:33] ---------------
[01:44:33]   Loading filterscript 'anim.amx'...
[01:44:33]   Loaded 1 filterscripts.

[01:44:33] *** Streamer Plugin: Include file version (0x275201) does not match plugin version (0x279001) (script might need to be recompiled with the latest include file)
[01:44:33]  
[01:44:33]  
[01:44:33]  
[01:44:33]  ======================================= 
[01:44:33]  |                                     | 
[01:44:33]  |        YSI version 3.09.0684        | 
[01:44:33]  |        By Alex "Y_Less" Cole        | 
[01:44:33]  |                                     | 
[01:44:33]  ======================================= 
[01:44:33]  
[01:44:33]  
[01:44:33]  
[01:44:43] Alcatraz RP - www.uskoro.com
[01:44:43] v1.2.0 gamemode - Loading...
[01:44:43] v1.2.0 gamemode - Loaded.
[01:44:43] v1.2.0 gamemode by Emrys
[01:44:43] Number of vehicle models: 93
[01:45:29] [connection] 25.8.156.176:54668 requests connection cookie.
[01:45:30] [connection] incoming connection: 25.8.156.176:54668 id: 0
[01:45:31] [join] Emrys has joined the server (0:25.8.156.176)

To je trazio EM Tosic evo mu sa crashdetectom log
-------------------
EVO VAM CMD ZA SNEG:
CMD:sneg( playerid, params[] ) {

   #if ZIMSKI_MOD == 1
   if( IsPlayerConnected( playerid ) ) {
   
        if( GetPlayerInterior( playerid ) != 0 || GetPlayerVirtualWorld( playerid ) != 0 ) {

          GRESKA( playerid, "Ne mozes u interijeru!" );
          return true;
      }
        if( !Snow[ playerid ] ) {
        
            new Float:Pos[ 3 ];
           Snow[ playerid ] = true;
         GetPlayerCameraPos( playerid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] );
         SnowObject[ playerid ] = CreatePlayerObject( playerid, 18864, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ]-5, 0.0, 0.0, 0.0, 300.0 );
         SendInfoMessage(playerid, "Ukljucio si sneg! Ako zelis da stavis/skines kapu - "col_athlone"/kapa.");

      }
      else if( Snow[ playerid ] ) {
      
          Snow[ playerid ] = false;
         DestroyPlayerObject( playerid, SnowObject[ playerid ] );
         SendInfoMessage( playerid, "Iskljucio si sneg! Ako zelis da stavis/skines kapu - "col_athlone"/kapa." );
      }
   }
   #else
   GRESKA( playerid, "Nije zimski period!");
   #endif
   return true;
}

@Muma ti si radio na ovom modu resi ovo!

Jel ti prikazuje neke warnove il slicne stvari kad compilas


Citat: Blaya97 poslato Novembar 13, 2016, 17:19:26 POSLE PODNE
Skripta koju koristim:Athlone
Detaljan opis problema:Kada ukcuam cmd /sneg ne pada sneg na serveru
Dio skripte:Pawno
Neke slike/video za lakse dobivanje pomoci(neobavezno)
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[01:44:32] 
[01:44:32] Server Plugins
[01:44:32] --------------
[01:44:32]  Loading plugin: sscanf
[01:44:32] 

[01:44:32]  ===============================

[01:44:32]       sscanf plugin loaded.     

[01:44:32]          Version:  2.8.1        

[01:44:32]    (c) 2012 Alex "Y_Less" Cole  

[01:44:32]  ===============================

[01:44:32]   Loaded.
[01:44:32]  Loading plugin: crashdetect
[01:44:33]   CrashDetect v4.15.1 is OK.
[01:44:33]   Loaded.
[01:44:33]  Loading plugin: streamer
[01:44:33] 

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

[01:44:33]   Loaded.
[01:44:33]  Loading plugin: MapAndreas
[01:44:33]   Loaded.
[01:44:33]  Loaded 4 plugins.

[01:44:33] 
[01:44:33] Filterscripts
[01:44:33] ---------------
[01:44:33]   Loading filterscript 'anim.amx'...
[01:44:33]   Loaded 1 filterscripts.

[01:44:33] *** Streamer Plugin: Include file version (0x275201) does not match plugin version (0x279001) (script might need to be recompiled with the latest include file)
[01:44:33]  
[01:44:33]  
[01:44:33]  
[01:44:33]  ======================================= 
[01:44:33]  |                                     | 
[01:44:33]  |        YSI version 3.09.0684        | 
[01:44:33]  |        By Alex "Y_Less" Cole        | 
[01:44:33]  |                                     | 
[01:44:33]  ======================================= 
[01:44:33]  
[01:44:33]  
[01:44:33]  
[01:44:43] Alcatraz RP - www.uskoro.com
[01:44:43] v1.2.0 gamemode - Loading...
[01:44:43] v1.2.0 gamemode - Loaded.
[01:44:43] v1.2.0 gamemode by Emrys
[01:44:43] Number of vehicle models: 93
[01:45:29] [connection] 25.8.156.176:54668 requests connection cookie.
[01:45:30] [connection] incoming connection: 25.8.156.176:54668 id: 0
[01:45:31] [join] Emrys has joined the server (0:25.8.156.176)

To je trazio EM Tosic evo mu sa crashdetectom log
-------------------
EVO VAM CMD ZA SNEG:
CMD:sneg( playerid, params[] ) {

   #if ZIMSKI_MOD == 1
   if( IsPlayerConnected( playerid ) ) {
   
        if( GetPlayerInterior( playerid ) != 0 || GetPlayerVirtualWorld( playerid ) != 0 ) {

          GRESKA( playerid, "Ne mozes u interijeru!" );
          return true;
      }
        if( !Snow[ playerid ] ) {
        
            new Float:Pos[ 3 ];
           Snow[ playerid ] = true;
         GetPlayerCameraPos( playerid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] );
         SnowObject[ playerid ] = CreatePlayerObject( playerid, 18864, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ]-5, 0.0, 0.0, 0.0, 300.0 );
         SendInfoMessage(playerid, "Ukljucio si sneg! Ako zelis da stavis/skines kapu - "col_athlone"/kapa.");

      }
      else if( Snow[ playerid ] ) {
      
          Snow[ playerid ] = false;
         DestroyPlayerObject( playerid, SnowObject[ playerid ] );
         SendInfoMessage( playerid, "Iskljucio si sneg! Ako zelis da stavis/skines kapu - "col_athlone"/kapa." );
      }
   }
   #else
   GRESKA( playerid, "Nije zimski period!");
   #endif
   return true;
}

@Muma ti si radio na ovom modu resi ovo!

CitatProveri Streamer.
*** Streamer Plugin: Include file version (0x275201) does not match plugin version (0x279001) (script might need to be recompiled with the latest



Vlasnik: Boky & Marko
Skripter: Boky
Mapper: Marko

A jel imas skriptu compile sa crashdetect?

Tosicu mozes da mi das fb nmg ovde vise da pisem i da cekam odgovore!Posalji mi na PM molim te


Evo ti komanda za sneg !!!
Jednostavno je!!!
CMD:sneg( playerid, params[] ) {

	#if ZIMSKI_MOD == 1 ///ako nemas definisano ovo za zimski mod,slobodno izbrisi!!!
	if( IsPlayerConnected( playerid ) ) {
	
        if( GetPlayerInterior( playerid ) != 0 || GetPlayerVirtualWorld( playerid ) != 0 ) {

			 GRESKA( playerid, "Ne mozes u interijeru!" );
			 return true;
		}
        if( !Snow[ playerid ] ) {
        
            new Float:Pos[ 3 ];
	        Snow[ playerid ] = true;
			GetPlayerCameraPos( playerid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] );
			SnowObject[ playerid ] = CreatePlayerObject( playerid, 18864, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ]-5, 0.0, 0.0, 0.0, 300.0 );
			SendInfoMessage(playerid, "Ukljucio si sneg! Ako zelis da stavis/skines kapu - "col_crvena"/kapa.");

		}
		else if( Snow[ playerid ] ) {
		
		    Snow[ playerid ] = false;
			DestroyPlayerObject( playerid, SnowObject[ playerid ] );
			SendInfoMessage( playerid, "Iskljucio si sneg! Ako zelis da stavis/skines kapu - "col_crvena"/kapa." );
		}
	}
	#else
	GRESKA( playerid, "Nije zimski period!");
	#endif
	return true;
}

To je to,valjda sada radi!!! 8) :D

___________
~ On permanent vacation ~ /