[Ajuda] Comandos e teclas
#10

Quote:
Originally Posted by Schocc
Посмотреть сообщение
O que nгo funcionou, detalhes?
O GuilhermeH falou pra eu pegar e adaptar as funзхes no meu comando, ai eu fiz oque ele falou, porйm nгo deu, meu cmd ficou assim:

pawn Код:
CMD:v(playerid, params[])
{
    static carro, Float:X, Float:Y, Float:Z, xCor, xCor2, Float:Angle;

    if(PlayerInMiniGame[playerid] != MINIGAME_NONE) return SendClientMessage(playerid, 0xFF4500FF, "Estб em um minijogo, use /sair");
    if(IsPlayerInRace) return SendClientMessage(playerid, 0xFF4500FF, "Estб em uma corrida, use /exitrace");
    ShowTextDrawDialog(playerid, DIALOG_VID, "ISSOeGTA FR 2013x .. Veiculos", "Ok", "Cancelar", "\
    Esportivos e elegantes"
, "Motos e Bicicletas", "Caminhonetes", "Avioes e Helicopteros", "Aquaticos", "Servico publico", "Industriais", "Carros variados", "Caminhoes", "Veiculos unicos", "Veiculos RC");

    if(xCarroCriado[playerid] != 0) DestroyVehicle(xCarroCriado[playerid]);

    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Angle);

    xCarroCriado[playerid] = AddStaticVehicleEx(carro, X, Y, Z, Angle, xCor, xCor2, -1);
    PutPlayerInVehicle(playerid, xCarroCriado[playerid], 0);

    return 1;
}
----------------------------------------------------------------------------------------------------------

Quote:
Originally Posted by Schocc
Посмотреть сообщение
PHP код:
#define V_SPEED_JUMP 0.300
public OnPlayerKeyStateChangeplayeridnewkeysoldkeys)
{
    if( ( 
newkeys KEY_YES ) && !( oldkeys KEY_YES ) )
    {
        if( 
GetPlayerStateplayerid ) == PLAYER_STATE_DRIVER )
        {
            
/*    SpeedBost:  UP    */
            
GetVehicleVelocity(     GetPlayerVehicleIDplayerid ), Pos[0], Pos[1], Pos[2]       ); //LINHA 18362
            
SetVehicleVelocity(     GetPlayerVehicleIDplayerid ), Pos[0], Pos[1], Pos[2] + V_SPEED_JUMP );
        }
        return 
1;
    } 
Eu coloquei esse comando, porйm deu os seguintes erros:
Код:
C:\Users\GUILHERME\Downloads\ISSOeGTA FreeRoam\gamemodes\IEGTA.pwn(18362) : error 017: undefined symbol "Pos"
C:\Users\GUILHERME\Downloads\ISSOeGTA FreeRoam\gamemodes\IEGTA.pwn(18362) : warning 215: expression has no effect
C:\Users\GUILHERME\Downloads\ISSOeGTA FreeRoam\gamemodes\IEGTA.pwn(18362) : error 001: expected token: ";", but found "]"
C:\Users\GUILHERME\Downloads\ISSOeGTA FreeRoam\gamemodes\IEGTA.pwn(18362) : error 029: invalid expression, assumed zero
C:\Users\GUILHERME\Downloads\ISSOeGTA FreeRoam\gamemodes\IEGTA.pwn(18362) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
PS: coloquei a linha no quote
Reply


Messages In This Thread
Comandos e teclas - by GuiihCamargo - 14.01.2014, 02:38
Re: Comandos e teclas - by PedroAuditore - 14.01.2014, 03:44
Re: Comandos e teclas - by GuiihCamargo - 14.01.2014, 06:51
Re: Comandos e teclas - by GuilhermeH - 14.01.2014, 12:31
Re: Comandos e teclas - by GuiihCamargo - 14.01.2014, 17:15
Re: Comandos e teclas - by GuilhermeH - 14.01.2014, 20:54
Re: Comandos e teclas - by GuiihCamargo - 14.01.2014, 21:32
Re: Comandos e teclas - by GuilhermeH - 15.01.2014, 10:32
Re: Comandos e teclas - by Schocc - 15.01.2014, 20:10
Re: Comandos e teclas - by GuiihCamargo - 15.01.2014, 20:38

Forum Jump:


Users browsing this thread: 2 Guest(s)