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:
SpikeStrip
412
pregleda
13
postova
10. Feb. 2013.
10. Feb. 2013.
Da .inc je ima u includima spikestrip
evo kod od njega
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);
}10. Feb. 2013.
Sve sam uradio.
Ali brate ovaj mod je radio Petricko i nemogu da vjerujem da je on to izostavio
Ali brate ovaj mod je radio Petricko i nemogu da vjerujem da je on to izostavio
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
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
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.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.Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava