08.10.2014, 15:26
PHP код:
C:\Users\Graзa Portela\Desktop\Jogos\GTA\Samps\PPC_Trucking\pawno\include\PPC_Common.inc(263) : error 017: undefined symbol "Cam3DText"
C:\Users\Graзa Portela\Desktop\Jogos\GTA\Samps\PPC_Trucking\pawno\include\PPC_Common.inc(263) : warning 213: tag mismatch
C:\Users\Graзa Portela\Desktop\Jogos\GTA\Samps\PPC_Trucking\pawno\include\PPC_Common.inc(266) : error 017: undefined symbol "CamObj3"
C:\Users\Graзa Portela\Desktop\Jogos\GTA\Samps\PPC_Trucking\pawno\include\PPC_Common.inc(407) : error 017: undefined symbol "RandomBonusxD"
C:\Users\Graзa Portela\Desktop\Jogos\GTA\Samps\PPC_Trucking\pawno\include\PPC_Common.inc(407) : error 029: invalid expression, assumed zero
C:\Users\Graзa Portela\Desktop\Jogos\GTA\Samps\PPC_Trucking\pawno\include\PPC_Common.inc(407) : error 029: invalid expression, assumed zero
C:\Users\Graзa Portela\Desktop\Jogos\GTA\Samps\PPC_Trucking\pawno\include\PPC_Common.inc(407) : fatal error 107: too many error messages on one line
Linha de 251 a 267
PHP код:
// This function creates a speedcamera (store data and create the objects)
SetupSpeedCamera(CamID, Float:x, Float:y, Float:z, Float:rot, MaxSpeed)
{
// 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_TEXTO, sizeof(JS_TEXTO), "{FF0000}[RADAR] \nVel. Mбxima {FFFF00}%i {FF0000}Km/h ",MaxSpeed);
ACameras[CamID][Cam3DText] = CreateDynamic3DTextLabel(JS_TEXTO,-1,x,y,z +5.0,100.0);
ACameras[CamID][CamObj1] = CreateObject(18880, x, y, z, 0.0, 0.0, rot);
ACameras[CamID][CamObj2] = CreateObject(18880, x, y, z, 0.0, 0.0, rot + 180.0);
ACameras[CamID][CamObj3] = CreateDynamicMapIcon(x, y, z, 34, 0, 0, 0, -1, 300.0);
}
PHP код:
forward ShowRandomBonusMafia();
public ShowRandomBonusMafia()
{
new bool:MissionSet = false, Msg1[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 0: MissionSet = 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(lName, 50, ALoads[RandomBonusxD[RandomLoad]][LoadName]);
format(sName, 50, ALocations[RandomBonusxD[RandomStartLoc]][LocationName]);
format(eName, 50, ALocations[RandomBonusxD[RandomEndLoc]][LocationName]);
switch(ALoads[RandomBonusxD[RandomLoad]][PCV_Required])
{
case PCV_MafiaVan: format(tName, 128, "SandKing");
case PCV_MafiaVanxD: format(tName, 128, "MoonBeam");
}
format(Msg1, 1000, "{D683C7}[Bфnus Mafia]: Transportar %s, de %s para %s com %s", lName, sName, eName, tName);
for (new playerid; playerid < MAX_PLAYERS; playerid++)
{
if (APlayerData[playerid][LoggedIn] == true)
{
if (APlayerData[playerid][PlayerClass] == ClassMafia)
{
SendClientMessage(playerid, 0xFFFFFFFF, Msg1);
}
}
}
return 1;
}