[AJUDA] Erros
#1

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!
Reply
#2

Entao Tenta atualizar suas includes.
Reply
#3

eu sofri um monte baixei no total umas 160 includes atй axar a SpikeStrip, se alguem tiver ela atualizada aн...
Reply
#4

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 
0sizeof(SpikeInfo); i++)
          {
              if(
IsPlayerInRangeOfPoint(playerid3.0SpikeInfo[i][sX], SpikeInfo[i][sY], SpikeInfo[i][sZ]))
            {
                  if(
SpikeInfo[i][sCreated] == 1)
                  {
                      new 
panelsdoorslightstires;
                      new 
carid GetPlayerVehicleID(playerid);
                    
GetVehicleDamageStatus(caridpanelsdoorslightstires);
                    
tires encode_tires(1111);
                    
UpdateVehicleDamageStatus(caridpanelsdoorslightstires);
                      return 
0;
                  }
              }
          }
      }

    return 
1;
}

stock CreateStrip(Float:x,Float:y,Float:z,Float:Angle)
{
    for(new 
0sizeof(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(2899xyz-0.900Angle-90);
            return 
1;
          }
      }
      return 
0;
}

stock DeleteAllStrip()
{
    for(new 
0sizeof(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 
0sizeof(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(tires1tires2tires3tires4) {

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


Reply
#5

@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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)