[Ajuda] Erros de Include do PPC_Trucking
#1

PHP код:
C:\Users\Graзa Portela\Desktop\Jogos\GTA\Samps\PPC_Trucking\pawno\include\PPC_Common.inc(263) : error 017undefined symbol "Cam3DText"
C:\Users\Graзa Portela\Desktop\Jogos\GTA\Samps\PPC_Trucking\pawno\include\PPC_Common.inc(263) : warning 213tag mismatch
C
:\Users\Graзa Portela\Desktop\Jogos\GTA\Samps\PPC_Trucking\pawno\include\PPC_Common.inc(266) : error 017undefined symbol "CamObj3"
C:\Users\Graзa Portela\Desktop\Jogos\GTA\Samps\PPC_Trucking\pawno\include\PPC_Common.inc(407) : error 017undefined symbol "RandomBonusxD"
C:\Users\Graзa Portela\Desktop\Jogos\GTA\Samps\PPC_Trucking\pawno\include\PPC_Common.inc(407) : error 029invalid expressionassumed zero
C
:\Users\Graзa Portela\Desktop\Jogos\GTA\Samps\PPC_Trucking\pawno\include\PPC_Common.inc(407) : error 029invalid expressionassumed zero
C
:\Users\Graзa Portela\Desktop\Jogos\GTA\Samps\PPC_Trucking\pawno\include\PPC_Common.inc(407) : fatal error 107too many error messages on one line 
LINHAS DOS PPC_COMMONS
Linha de 251 a 267
PHP код:
// This function creates a speedcamera (store data and create the objects)
SetupSpeedCamera(CamIDFloat:xFloat:yFloat:zFloat:rotMaxSpeed)
{
    
// Store all the given values
    
ACameras[CamID][CamX] = x;
    
ACameras[CamID][CamY] = y;
    
ACameras[CamID][CamZ] = z;
    
ACameras[CamID][CamAngle] = rot;
    
ACameras[CamID][CamSpeed] = MaxSpeed;
    
// Create both camera objects and store their reference
     
new JS_TEXTO[256];
    
format(JS_TEXTOsizeof(JS_TEXTO), "{FF0000}[RADAR] \nVel. Mбxima {FFFF00}%i {FF0000}Km/h ",MaxSpeed);
    
ACameras[CamID][Cam3DText] = CreateDynamic3DTextLabel(JS_TEXTO,-1,x,y,+5.0,100.0);
    
ACameras[CamID][CamObj1] = CreateObject(18880xyz0.00.0rot);
    
ACameras[CamID][CamObj2] = CreateObject(18880xyz0.00.0rot 180.0);
    
ACameras[CamID][CamObj3] = CreateDynamicMapIcon(xyz34000, -1300.0);

Linhas de 403 a 457
PHP код:
forward ShowRandomBonusMafia();
public 
ShowRandomBonusMafia()
{
    new 
bool:MissionSet falseMsg1[1000], lName[1000], sName[1000], eName[1000], tName[1000];
    if ((
RandomBonusxD[RandomLoad] == 0) || (RandomBonusxD[MissionFinishedxD] == true))
    {
        while (
MissionSet == false)
        {
            
RandomBonusxD[RandomLoad] = random(sizeof(ALoads));
            switch (
RandomBonusxD[RandomLoad])
            {
                case 
0MissionSet false;
                default:
                {
                    switch(
ALoads[RandomBonusxD[RandomLoad]][PCV_Required])
                    {
                        case 
PCV_MafiaVan:
                        {
                            
MissionSet true;
                        }
                        default: 
MissionSet false;
                    }
                }
            }
        }
        
RandomBonusxD[RandomStartLoc] = Product_GetRandomStartLoc(RandomBonusxD[RandomLoad]);
        
RandomBonusxD[RandomEndLoc] = Product_GetRandomEndLoc(RandomBonusxD[RandomLoad]);
        
RandomBonusxD[MissionFinishedxD] = false;
    }
    
format(lName50ALoads[RandomBonusxD[RandomLoad]][LoadName]);
    
format(sName50ALocations[RandomBonusxD[RandomStartLoc]][LocationName]);
    
format(eName50ALocations[RandomBonusxD[RandomEndLoc]][LocationName]);
    switch(
ALoads[RandomBonusxD[RandomLoad]][PCV_Required])
    {
        case 
PCV_MafiaVanformat(tName128"SandKing");
        case 
PCV_MafiaVanxDformat(tName128"MoonBeam");
    }
    
format(Msg11000"{D683C7}[Bфnus Mafia]: Transportar %s, de %s para %s com %s"lNamesNameeNametName);
    for (new 
playeridplayerid MAX_PLAYERSplayerid++)
    {
        if (
APlayerData[playerid][LoggedIn] == true)
        {
            if (
APlayerData[playerid][PlayerClass] == ClassMafia)
            {
                
SendClientMessage(playerid0xFFFFFFFFMsg1);
            }
        }
    }
    return 
1;

Reply
#2

tenta ir em PPC_Defines, procura por TSpeedCamera, e coloca isso:

pawn Код:
Float:CamX,
Float:CamY,
Float:CamZ,
Float:CamAngle,
CamSpeed,
CamObj1,
CamObj2,
CamObj3,
Text3D:Cam3DText
#EDIT

Nгo tinha visto o outro, viajei
Ainda em PPC_Defines, procura por RandomBonusMission, e cola isso em baixo dele:
pawn Код:
enum TRandomBonusxD
{
    RandomLoad,
    RandomStartLoc,
    RandomEndLoc,
    bool:MissionFinishedxD
}
new RandomBonusxD[TRandomBonusxD];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)