[Ajuda] Velocimetro Dando Erro
#1

Bem, peguei o velocimetro do Brasil Mega Life 3.1, mas quando coloco o mesmo dб 4 errors no GM, sei lб pq ...

pawn Код:
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"
Serб que alguem pode me ajudar pfv?
Reply
#2

coloca isso ae debaixo dos DEFINE no cumeco do GM
pawn Код:
new
    Float:sVehicle_X,
    Float:sVehicle_Y,
    Float:sVehicle_Z
;
Reply
#3

pawn Код:
new
    Float:sVehicle_X,
    Float:sVehicle_Y,
    Float:sVehicle_Z
;
Reply
#4

Quote:
Originally Posted by MarcosRodrigo
Посмотреть сообщение
coloca isso ae debaixo dos DEFINE no cumeco do GM
pawn Код:
new
    Float:sVehicle_X,
    Float:sVehicle_Y,
    Float:sVehicle_Z
;
Deu Isso

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
Reply
#5

Variaveis jб existe
Reply
#6

Quote:
Originally Posted by feliphemort
Посмотреть сообщение
Variaveis jб existe
Deu isso

pawn Код:
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
Linhas do erro

pawn Код:
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;
}
Reply
#7

Tenta assim:

pawn Код:
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;
}
Reply
#8

Quote:
Originally Posted by AlucardSnow
Посмотреть сообщение
Tenta assim:

pawn Код:
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;
}
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.
@EDIT

Alguem para ajudar?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)