bCMD[flip]-(playerid, params[])
{
#pragma unused params
new Float:X, Float:Y, Float:Z;
if(IsPlayerInAnyVehicle(playerid))
{
SetCameraBehindPlayer(playerid);
GetPlayerPos(playerid, X, Y, Z);
SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
}
return 1;
}
C:\Users\Villy\Desktop\iniciante\gamemodes\Freeroam.pwn(4759) : warning 219: local variable "X" shadows a variable at a preceding level C:\Users\Villy\Desktop\iniciante\gamemodes\Freeroam.pwn(4759) : warning 219: local variable "Y" shadows a variable at a preceding level C:\Users\Villy\Desktop\iniciante\gamemodes\Freeroam.pwn(4759) : warning 219: local variable "Z" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Warnings.
Troque por new Float:Xa, Float:Ya, Float: Za.
Pois o gamemode reconhece que jб existe definiзхes como esta. |
bCMD[flip]-(playerid, params[]) { #pragma unused params new Float:X, Float:Y, Float:Z; if(IsPlayerInAnyVehicle(playerid)) { SetCameraBehindPlayer(playerid); GetPlayerPos(playerid, X, Y, Z);// Aki no lugar de x,y,z voce coloca os numeros das cordenadas SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);// Aki no lugar de x,y,z voce coloca os numeros das cordenadas SetVehicleZAngle(GetPlayerVehicleID(playerid), 0); } return 1; }
LoooL Mano
Vocк esqueceu de Colocar as cordenadas no negoзo Oxi ai vai da erro mesmo Код:
bCMD[flip]-(playerid, params[]) { #pragma unused params new Float:X, Float:Y, Float:Z; if(IsPlayerInAnyVehicle(playerid)) { SetCameraBehindPlayer(playerid); GetPlayerPos(playerid, X, Y, Z);// Aki no lugar de x,y,z voce coloca os numeros das cordenadas SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);// Aki no lugar de x,y,z voce coloca os numeros das cordenadas SetVehicleZAngle(GetPlayerVehicleID(playerid), 0); } return 1; } |
bCMD[flip]-(playerid, params[])
{
#pragma unused params
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Tem q estar em um veiculo");
new Float:pX, Float:pY, Float:pZ;
if(IsPlayerInAnyVehicle(playerid))
SetCameraBehindPlayer(playerid);
GetPlayerPos(playerid, pX, pY, pZ);
SetVehiclePos(GetPlayerVehicleID(playerid), pX, pY, pZ);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
return 1;
}
pawn Код:
|