C:\Users\FlaaSShh\Desktop\Brasil Ultimate Life\gamemodes\GM.pwn(250) : error 017: undefined symbol "sVehicle_X"
C:\Users\FlaaSShh\Desktop\Brasil Ultimate Life\gamemodes\GM.pwn(251) : error 017: undefined symbol "sVehicle_Y"
C:\Users\FlaaSShh\Desktop\Brasil Ultimate Life\gamemodes\GM.pwn(252) : error 017: undefined symbol "sVehicle_Z"
new
Float:sVehicle_X,
Float:sVehicle_Y,
Float:sVehicle_Z
;
new
Float:sVehicle_X,
Float:sVehicle_Y,
Float:sVehicle_Z
;
coloca isso ae debaixo dos DEFINE no cumeco do GM
pawn Код:
|
C:\Users\FlaaSShh\Desktop\Brasil Ultimate Life\gamemodes\GM.pwn(249) : warning 219: local variable "sVehicle_X" shadows a variable at a preceding level
C:\Users\FlaaSShh\Desktop\Brasil Ultimate Life\gamemodes\GM.pwn(250) : warning 219: local variable "sVehicle_Y" shadows a variable at a preceding level
C:\Users\FlaaSShh\Desktop\Brasil Ultimate Life\gamemodes\GM.pwn(251) : warning 219: local variable "sVehicle_Z" shadows a variable at a preceding level
C:\Users\FlaaSShh\Desktop\Brasil Ultimate Life\gamemodes\GM.pwn(253) : error 017: undefined symbol "SaveCoord_X"
C:\Users\FlaaSShh\Desktop\Brasil Ultimate Life\gamemodes\GM.pwn(254) : error 028: invalid subscript (not an array or too many subscripts): "sVehicle_X"
C:\Users\FlaaSShh\Desktop\Brasil Ultimate Life\gamemodes\GM.pwn(254) : warning 215: expression has no effect
C:\Users\FlaaSShh\Desktop\Brasil Ultimate Life\gamemodes\GM.pwn(254) : error 001: expected token: ";", but found "]"
C:\Users\FlaaSShh\Desktop\Brasil Ultimate Life\gamemodes\GM.pwn(254) : error 029: invalid expression, assumed zero
C:\Users\FlaaSShh\Desktop\Brasil Ultimate Life\gamemodes\GM.pwn(254) : fatal error 107: too many error messages on one line
C:\Users\FlaaSShh\Desktop\Brasil Ultimate Life\gamemodes\GM.pwn(253) : error 017: undefined symbol "SaveCoord_X"
C:\Users\FlaaSShh\Desktop\Brasil Ultimate Life\gamemodes\GM.pwn(254) : error 028: invalid subscript (not an array or too many subscripts): "sVehicle_X"
C:\Users\FlaaSShh\Desktop\Brasil Ultimate Life\gamemodes\GM.pwn(254) : warning 215: expression has no effect
C:\Users\FlaaSShh\Desktop\Brasil Ultimate Life\gamemodes\GM.pwn(254) : error 001: expected token: ";", but found "]"
C:\Users\FlaaSShh\Desktop\Brasil Ultimate Life\gamemodes\GM.pwn(254) : error 029: invalid expression, assumed zero
C:\Users\FlaaSShh\Desktop\Brasil Ultimate Life\gamemodes\GM.pwn(254) : fatal error 107: too many error messages on one line
stock SaveLastPosition(vehicleid)
{
new
Float:sVehicle_X,
Float:sVehicle_Y,
Float:sVehicle_Z
;
GetVehiclePos(vehicleid, SaveCoord_X, SaveCoord_Y, SaveCoord_Z);
sVehicle_X[vehicleid]=SaveCoord_X;
sVehicle_Y[vehicleid]=SaveCoord_Y;
sVehicle_Z[vehicleid]=SaveCoord_Z;
}
stock SaveLastPosition(vehicleid)
{
new
Float:sVehicle_X,
Float:sVehicle_Y,
Float:sVehicle_Z,
Float:SaveCoord_X,
Float:SaveCoord_Y,
Float:SaveCoord_Z
;
GetVehiclePos(vehicleid, SaveCoord_X, SaveCoord_Y, SaveCoord_Z);
sVehicle_X[vehicleid]=SaveCoord_X;
sVehicle_Y[vehicleid]=SaveCoord_Y;
sVehicle_Z[vehicleid]=SaveCoord_Z;
}
Tenta assim:
pawn Код:
|
C:\Users\FlaaSShh\Desktop\Brasil Ultimate Life\gamemodes\GM.pwn(257) : error 028: invalid subscript (not an array or too many subscripts): "sVehicle_X"
C:\Users\FlaaSShh\Desktop\Brasil Ultimate Life\gamemodes\GM.pwn(257) : warning 215: expression has no effect
C:\Users\FlaaSShh\Desktop\Brasil Ultimate Life\gamemodes\GM.pwn(257) : error 001: expected token: ";", but found "]"
C:\Users\FlaaSShh\Desktop\Brasil Ultimate Life\gamemodes\GM.pwn(257) : error 029: invalid expression, assumed zero
C:\Users\FlaaSShh\Desktop\Brasil Ultimate Life\gamemodes\GM.pwn(257) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.