[AJUDA] Erros - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Erros (
/showthread.php?tid=266460)
[AJUDA] Erros -
Joao_VS - 04.07.2011
Galera, to precizando de ajuda, tipo assim, qdo eu vou compilar meu GM ele da erros, mas nгo erros no GM ele da erros nas includes. As includes sгo a streamer e a SpikeStrip se alguem tiver elas aн, ou souber ql o problema, eu agradeзo.
Obs: se alguem tiver a include manda o download do arquivo .inc pq eu num sei salbva nesse formato :P
Valeu!
Re: [AJUDA] Erros -
Transferencia - 04.07.2011
Entao Tenta atualizar suas includes.
Re: [AJUDA] Erros -
Joao_VS - 04.07.2011
eu sofri um monte baixei no total umas 160 includes atй axar a SpikeStrip, se alguem tiver ela atualizada aн...
Re: [AJUDA] Erros -
Shadoww5 - 05.07.2011
SpikeStrip.inc
PHP код:
#include <a_samp>
#define MAX_SPIKESTRIPS 200
enum sInfo
{
sCreated,
Float:sX,
Float:sY,
Float:sZ,
sObject,
};
new SpikeInfo[MAX_SPIKESTRIPS][sInfo];
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[i][sX], SpikeInfo[i][sY], SpikeInfo[i][sZ]))
{
if(SpikeInfo[i][sCreated] == 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[i][sCreated] == 0)
{
SpikeInfo[i][sCreated]=1;
SpikeInfo[i][sX]=x;
SpikeInfo[i][sY]=y;
SpikeInfo[i][sZ]=z-0.7;
SpikeInfo[i][sObject] = 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[i][sCreated] == 1)
{
SpikeInfo[i][sCreated]=0;
SpikeInfo[i][sX]=0.0;
SpikeInfo[i][sY]=0.0;
SpikeInfo[i][sZ]=0.0;
DestroyObject(SpikeInfo[i][sObject]);
}
}
return 0;
}
stock DeleteClosestStrip()
{
for(new i = 0; i < sizeof(SpikeInfo); i++)
{
if(SpikeInfo[i][sCreated] == 1)
{
SpikeInfo[i][sCreated]=0;
SpikeInfo[i][sX]=0.0;
SpikeInfo[i][sY]=0.0;
SpikeInfo[i][sZ]=0.0;
DestroyObject(SpikeInfo[i][sObject]);
return 1;
}
}
return 0;
}
encode_tires(tires1, tires2, tires3, tires4) {
return tires1 | (tires2 << 1) | (tires3 << 2) | (tires4 << 3);
}
Re: [AJUDA] Erros -
Joao_VS - 05.07.2011
@Shadoww5
Esse problema eu jб resolvi, sу q agr eu to com esses. Pra nгo fica floodando, nesse topico aki ta os pobrema, os 1є jб resolvi, ve minha utima resposta. Topico:
https://sampforum.blast.hk/showthread.php?tid=266480