Problem

Započeo Ivo_Bosnjak, Novembar 26, 2021, 00:38:35 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Imam problem sa cmd:spec
Deo skripte:
Pawno Code:
[pawn]CMD:spec(playerid, params[]) // SPEC i SPECOFF UZETI IZ DRUGOG MODA - MRZELO ME RADITI
{
    new id;
   if(PlayerInfo[playerid][pAdminLevel] > 0)
   {
      if(sscanf(params,"u", id))return SendClientMessage(playerid, -1, ""COL_SERVER"[SERVER] "BELA"Koristi: /spec [id]");
      if(id == playerid) return SendClientMessage(playerid,-1,""COL_SERVER"[SERVER] "BELA"Ne mozes da nadgledas samog sebe !");
      if(id == INVALID_PLAYER_ID)return SendClientMessage(playerid, -1, ""COL_SERVER"[SERVER] "BELA"Taj igrac nije na serveru !");
      if(IsSpecing[playerid] == 1)return SendClientMessage(playerid,-1,""COL_SERVER"[SERVER] "BELA"Vec nadgledas nekoga !");
      GetPlayerPos(playerid,SpecX[playerid],SpecY[playerid],SpecZ[playerid]);
      Inter[playerid] = GetPlayerInterior(playerid);
      vWorld[playerid] = GetPlayerVirtualWorld(playerid);
      TogglePlayerSpectating(playerid, true);
      if(IsPlayerInAnyVehicle(id))
      {
          if(GetPlayerInterior(id) > 0)
          {
         SetPlayerInterior(playerid,GetPlayerInterior(id));
         }
         if(GetPlayerVirtualWorld(id) > 0)
         {
          SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(id));
          PlayerSpectateVehicle(playerid,GetPlayerVehicleID(id));
          }
      }
      else
      {
          if(GetPlayerInterior(id) > 0)
          {
            SetPlayerInterior(playerid,GetPlayerInterior(id));
         }
         if(GetPlayerVirtualWorld(id) > 0)
         {
             SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(id));
         }
          PlayerSpectatePlayer(playerid,id);
      }
      GetPlayerName(id, Name, sizeof(Name));
      format(String, sizeof(String),""COL_SERVER"[SERVER] "BELA"Poceo si sa nagledanjem igraca %s",Name);
      SendClientMessage(playerid,0x0080C0FF,String);
      IsSpecing[playerid] = 1;
      IsBeingSpeced[id] = 1;
      spectatorid[playerid] = id;
      }
   }
   else return SCM(playerid, -1, ""COL_SERVER"[SERVER] "BELA"Nisi ovlasceni !");
   return 1;
}[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
Kod: [Izaberi]
//
Poslednja Izmena: Novembar 27, 2021, 16:06:36 POSLE PODNE od мυмα



Citat: V01D poslato Novembar 26, 2021, 01:45:02 PRE PODNE
Koji problem imas?
Pa ima problem sa spec komandom iz nekog 16stog moda...sta ti tu nije jasno? ?