format(stringr, sizeof(stringr), "Vel. Maxima %i Km/h", MaxSpeed); ACameras[CamID][CamText] = Create3DTextLabel(stringr, 0xFF0000FF, x, y, z+6.0, 100.0, 0, 0);
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 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); format(stringr, sizeof(stringr), "Vel. Maxima %i Km/h", MaxSpeed); ACameras[CamID][CamText] = Create3DTextLabel(stringr, 0xFF0000FF, x, y, z+6.0, 100.0, 0, 0); }
C:\Users\Julio\Desktop\PPC_Trucking\pawno\include\PPC_Common.inc(266) : error 017: undefined symbol "stringr" C:\Users\Julio\Desktop\PPC_Trucking\pawno\include\PPC_Common.inc(266) : error 017: undefined symbol "stringr" C:\Users\Julio\Desktop\PPC_Trucking\pawno\include\PPC_Common.inc(266) : error 029: invalid expression, assumed zero C:\Users\Julio\Desktop\PPC_Trucking\pawno\include\PPC_Common.inc(266) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
format(stringr, sizeof(stringr), "Vel. Maxima %i Km/h", MaxSpeed);
C:\Users\Julio\Desktop\PPC_Trucking\pawno\include\PPC_Common.inc(268) : error 017: undefined symbol "CamText" C:\Users\Julio\Desktop\PPC_Trucking\pawno\include\PPC_Common.inc(268) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
C:\Users\Julio\Desktop\PPC_Trucking\pawno\include\PPC_Common.inc(269) : warning 213: tag mismatch C:\Users\Julio\Desktop\PPC_Trucking\pawno\include\PPC_Common.inc(269) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.
ACameras[CamID][CamText] = Create3DTextLabel(stringr, 0xFF0000FF, x, y, z+6.0, 100.0, 0, 0);
ACameras[CamID] = Create3DTextLabel(stringr, 0xFF0000FF, x, y, z+6.0, 100.0, 0, 0);
Tentar assim nгo sei se ta certo
pawn Код:
|
C:\Users\Julio\Desktop\PPC_Trucking\pawno\include\PPC_Common.inc(269) : error 033: array must be indexed (variable "ACameras") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
ACameras[CamID] = Create3DTextLabel(stringr, 0xFF0000FF, x, y, z+6.0, 100.0, 0, 0);
Agora deu apenas 1
Код:
C:\Users\Julio\Desktop\PPC_Trucking\pawno\include\PPC_Common.inc(269) : error 033: array must be indexed (variable "ACameras") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. Код:
ACameras[CamID] = Create3DTextLabel(stringr, 0xFF0000FF, x, y, z+6.0, 100.0, 0, 0); |
enum TSpeedCamera
{
Float:CamX,
Float:CamY,
Float:CamZ,
Float:CamAngle,
CamSpeed,
CamObj1,
CamObj2,
Text3D:CamText // Adicione
}
new ACameras[MAX_CAMERAS][TSpeedCamera];
ACameras[CamID][CamText] = Create3DTextLabel(stringr, 0xFF0000FF, x, y, z+6.0, 100.0, 0, 0);
enum TSpeedCamera
{
Float:CamX,
Float:CamY,
Float:CamZ,
Float:CamAngle,
CamSpeed,
CamObj1,
CamObj2,
Text3D:CamText // Adicione
}
new ACameras[MAX_CAMERAS][TSpeedCamera];
C:\Users\Julio\Desktop\PPC_Trucking\pawno\include\PPC_Common.inc(258) : warning 219: local variable "CamText" shadows a variable at a preceding level C:\Users\Julio\Desktop\PPC_Trucking\pawno\include\PPC_Common.inc(258) : warning 203: symbol is never used: "CamText" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.