SpikeStrip

Započeo [MCRP]Santos
10. Feb. 2013. Zaključano
412
pregleda
13
postova
Sub-Zero
4
Enforcer
10. Feb. 2013.
Skripta: Magic City (Vargas RPG Mod)
Opis problema: Imam jedan ERORR a to je SpikeStrip
Dio skripte:fatal error 100: cannot read from file: SpikeStrip
Slike:
Blaeks_Biofor
5
Forum Don
10. Feb. 2013.
otvori gamemod preko pawn dadoteke
Sub-Zero
4
Enforcer
10. Feb. 2013.
Opet isto.

Posto je VARGAS edit od RAVENSA dali da uzmem iz njega pawno
Blaeks_Biofor
5
Forum Don
10. Feb. 2013.
nepotrebno , ravens je cini mi se 0.3a, tako da ne, uzmi vidi da li ti imas SpikeStrip include, posto je to include fajl koliko vidim?
Sub-Zero
4
Enforcer
10. Feb. 2013.
Da .inc je ima u includima spikestrip

evo kod od njega
#include 

#define MAX_SPIKESTRIPS 20

enum sInfo
{
sCreated,
    Float:sX,
    Float:sY,
    Float:sZ,
    sObject,
};
new SpikeInfo;

public OnPlayerUpdate(playerid)
{
if(!IsPlayerConnected(playerid)) return 0;

    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        for(new i = 0; i < sizeof(SpikeInfo); i++)
      {
          if(IsPlayerInRangeOfPoint(playerid, 3.0, SpikeInfo, SpikeInfo, SpikeInfo))
            {
              if(SpikeInfo == 1)
              {
                  new panels, doors, lights, tires;
                  new carid = GetPlayerVehicleID(playerid);
            GetVehicleDamageStatus(carid, panels, doors, lights, tires);
            tires = encode_tires(1, 1, 1, 1);
            UpdateVehicleDamageStatus(carid, panels, doors, lights, tires);
                  return 0;
              }
          }
      }
  }

return 1;
}

stock CreateStrip(Float:x,Float:y,Float:z,Float:Angle)
{
    for(new i = 0; i < sizeof(SpikeInfo); i++)
  {
      if(SpikeInfo == 0)
      {
            SpikeInfo=1;
            SpikeInfo=x;
            SpikeInfo=y;
            SpikeInfo=z-0.7;
            SpikeInfo = CreateObject(2899, x, y, z-0.9, 0, 0, Angle-90);
        return 1;
      }
  }
  return 0;
}

stock DeleteAllStrip()
{
    for(new i = 0; i < sizeof(SpikeInfo); i++)
  {
      if(SpikeInfo == 1)
      {
          SpikeInfo=0;
            SpikeInfo=0.0;
            SpikeInfo=0.0;
            SpikeInfo=0.0;
            DestroyObject(SpikeInfo);
      }
}
    return 0;
}

stock DeleteClosestStrip(playerid)
{
    for(new i = 0; i < sizeof(SpikeInfo); i++)
  {
      if(IsPlayerInRangeOfPoint(playerid, 2.0, SpikeInfo, SpikeInfo, SpikeInfo))
        {
          if(SpikeInfo == 1)
            {
                SpikeInfo=0;
                SpikeInfo=0.0;
                SpikeInfo=0.0;
                SpikeInfo=0.0;
                DestroyObject(SpikeInfo);
                return 1;
          }
      }
  }
    return 0;
}

encode_tires(tires1, tires2, tires3, tires4) {

return tires1 | (tires2 << 1) | (tires3 << 2) | (tires4 << 3);

}
Blaeks_Biofor
5
Forum Don
10. Feb. 2013.
stavi ga u folder pawno> include pa onda na vrh skritpe zapisi njegov naziv i onda recompile , ali gamemod otvori preko pawn dadoteke, to bi valjda trebalo biti to
Sub-Zero
4
Enforcer
10. Feb. 2013.
#include   ?
Blaeks_Biofor
5
Forum Don
10. Feb. 2013.
ako se tako zove include , onda svakako da je tako
Sub-Zero
4
Enforcer
10. Feb. 2013.
Sve sam uradio.

Ali brate ovaj mod je radio Petricko i nemogu da vjerujem da je on to izostavio
Sub-Zero
4
Enforcer
10. Feb. 2013.
SORY FOR DP

Petricko mi je dao mod ali mi nije dao PAWNO folder rekao mi je da skinem 0.3x win serer i da prebacim ja sam prebacio sve al evo imam eror taj SpikeStrip
Sub-Zero
4
Enforcer
10. Feb. 2013.
EVO SADA
C:\Dell\Mods Dell\VARGAS\VGRP\Varga's RolePlay 0.3e\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "panels" shadows a variable at a preceding level
C:\Dell\Mods Dell\VARGAS\VGRP\Varga's RolePlay 0.3e\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "doors" shadows a variable at a preceding level
C:\Dell\Mods Dell\VARGAS\VGRP\Varga's RolePlay 0.3e\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "lights" shadows a variable at a preceding level
C:\Dell\Mods Dell\VARGAS\VGRP\Varga's RolePlay 0.3e\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "tires" shadows a variable at a preceding level
C:\Dell\Mods Dell\VARGAS\VGRP\Varga's RolePlay 0.3e\gamemodes\VGRP.pwn(2896) : warning 201: redefinition of constant/macro (symbol "sInfo")
C:\Dell\Mods Dell\VARGAS\VGRP\Varga's RolePlay 0.3e\gamemodes\VGRP.pwn(12922) : error 037: invalid string (possibly non-terminated string)
C:\Dell\Mods Dell\VARGAS\VGRP\Varga's RolePlay 0.3e\gamemodes\VGRP.pwn(12922) : error 017: undefined symbol "City"
C:\Dell\Mods Dell\VARGAS\VGRP\Varga's RolePlay 0.3e\gamemodes\VGRP.pwn(12922) : error 029: invalid expression, assumed zero
C:\Dell\Mods Dell\VARGAS\VGRP\Varga's RolePlay 0.3e\gamemodes\VGRP.pwn(12922) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

4 Errors.
Sub-Zero
4
Enforcer
10. Feb. 2013.
Sredio sam ove erore ali imam nove ☹️
C:\Dell\Mods Dell\VARGAS\VGRP\Varga's RolePlay 0.3e\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "panels" shadows a variable at a preceding level
C:\Dell\Mods Dell\VARGAS\VGRP\Varga's RolePlay 0.3e\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "doors" shadows a variable at a preceding level
C:\Dell\Mods Dell\VARGAS\VGRP\Varga's RolePlay 0.3e\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "lights" shadows a variable at a preceding level
C:\Dell\Mods Dell\VARGAS\VGRP\Varga's RolePlay 0.3e\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "tires" shadows a variable at a preceding level
C:\Dell\Mods Dell\VARGAS\VGRP\Varga's RolePlay 0.3e\gamemodes\VGRP.pwn(2896) : warning 201: redefinition of constant/macro (symbol "sInfo")
C:\Dell\Mods Dell\VARGAS\VGRP\Varga's RolePlay 0.3e\gamemodes\VGRP.pwn(72759) : error 021: symbol already defined: "NameTimer"
C:\Dell\Mods Dell\VARGAS\VGRP\Varga's RolePlay 0.3e\gamemodes\VGRP.pwn(74997) : warning 215: expression has no effect
C:\Dell\Mods Dell\VARGAS\VGRP\Varga's RolePlay 0.3e\gamemodes\VGRP.pwn(75993) : error 025: function heading differs from prototype
C:\Dell\Mods Dell\VARGAS\VGRP\Varga's RolePlay 0.3e\gamemodes\VGRP.pwn(75993) : error 021: symbol already defined: "encode_tires"
C:\Dell\Mods Dell\VARGAS\VGRP\Varga's RolePlay 0.3e\gamemodes\VGRP.pwn(77302) : error 021: symbol already defined: "OnPlayerUpdate"
C:\Dell\Mods Dell\VARGAS\VGRP\Varga's RolePlay 0.3e\gamemodes\VGRP.pwn(77373) : error 017: undefined symbol "encode_tres"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

5 Errors.
Sub-Zero
4
Enforcer
10. Feb. 2013.
BUMP

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha