Pomoc oko SetPlayerSkillLevel

Započeo ★★Corona★★, Februar 20, 2019, 21:12:41 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Ovako, hocu da napravim da igrac koji skupi odredjeni broj ubistava u dm zoni dobije skill 999, e sad problem je sto mi ne radi, a ne znam kako drugacije ovo da uredim, pa ako neko zna nek pmogne hvala!
Dio skripte: Dole
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //
Slika/video ingame problema(obavezno ako je ingame problem): //

inace je ovo ispod onplayerspawn

[pawn]   SetPlayerSkillLevel( playerid, WEAPONSKILL_AK47, 1 );
   SetPlayerSkillLevel( playerid, WEAPONSKILL_M4, 1 );
   SetPlayerSkillLevel( playerid, WEAPONSKILL_SNIPERRIFLE, 1 );
   SetPlayerSkillLevel( playerid, WEAPONSKILL_MP5, 1 );
   SetPlayerSkillLevel( playerid, WEAPONSKILL_MICRO_UZI, 1 );
   SetPlayerSkillLevel( playerid, WEAPONSKILL_SPAS12_SHOTGUN, 1 );
   SetPlayerSkillLevel( playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 1 );
   SetPlayerSkillLevel( playerid, WEAPONSKILL_SHOTGUN, 1 );
   SetPlayerSkillLevel( playerid, WEAPONSKILL_DESERT_EAGLE, 1 );
   SetPlayerSkillLevel( playerid, WEAPONSKILL_PISTOL_SILENCED, 1 );
   SetPlayerSkillLevel( playerid, WEAPONSKILL_PISTOL, 1 );

   if( PlayerInfo[ playerid ][ xDMEventUbistva ] >= 4500 ) {
         SetPlayerSkillLevel( playerid, WEAPONSKILL_AK47, 999 );
         SetPlayerSkillLevel( playerid, WEAPONSKILL_M4, 999 );
         SetPlayerSkillLevel( playerid, WEAPONSKILL_SNIPERRIFLE, 999 );
      }
      else if( PlayerInfo[ playerid ][ xDMEventUbistva ] >= 4000 ) {
         SetPlayerSkillLevel( playerid, WEAPONSKILL_MP5, 999 );
      }
      else if( PlayerInfo[ playerid ][ xDMEventUbistva ] >= 3500 ) {
         SetPlayerSkillLevel( playerid, WEAPONSKILL_MICRO_UZI, 999 );
      }
      else if( PlayerInfo[ playerid ][ xDMEventUbistva ] >= 3000 ) {
         SetPlayerSkillLevel( playerid, WEAPONSKILL_SPAS12_SHOTGUN, 999 );
      }
      else if( PlayerInfo[ playerid ][ xDMEventUbistva ] >= 2500 ) {
         SetPlayerSkillLevel( playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 999 );
      }
      else if( PlayerInfo[ playerid ][ xDMEventUbistva ] >= 2000 ) {
         SetPlayerSkillLevel( playerid, WEAPONSKILL_SHOTGUN, 999 );
      }
      else if( PlayerInfo[ playerid ][ xDMEventUbistva ] >= 1500 ) {
         SetPlayerSkillLevel( playerid, WEAPONSKILL_DESERT_EAGLE, 999 );
      }
      else if( PlayerInfo[ playerid ][ xDMEventUbistva ] >= 1000 ) {
         SetPlayerSkillLevel( playerid, WEAPONSKILL_PISTOL_SILENCED, 999 );
      }
      else if( PlayerInfo[ playerid ][ xDMEventUbistva ] >= 500 ) {
         SetPlayerSkillLevel( playerid, WEAPONSKILL_PISTOL, 999 );[/pawn]