Unknown Command
#1

Hello, I am the Portuguese board and I have a problem. Unfortunately the board pt. I could not help.

I hope you understand what I say, because I am using the ****** translator

Estou com um problema com os veнculos de evento na minha hospedagem.

Oque acontece й que quando crio o primeiro veнculo ele spawna normalmente, jб quando crio mais veнculos ele produzem: Unknown Command e os veнculos nгo sгo aceitos no evento.

See:

This is on localhost and it works perfectly.


Here and in hosting and does not work.

I have looked at the forum and found nothing.

This is the code to create vehicles:

pawn Код:
if( !strcmp( cmd, "/ecv", true ))
            {
                if( VeiculosEvento == MAX_VEH_EVENTO )
                {
                    SendClientMessage( playerid, ERRO, " | ERROR |EXCEEDED THE EVENT FOR VEHICLES LIMIT" );
                    return 1;
                }
                tmp = strtok( cmdtext, idx );
                if( !strlen( tmp ))
                {
                    SendClientMessage( playerid, ERRO, " | ERRO | CORRECT USE: /ecv [VEHICLEID]" );
                    return 1;
                }
                new
                    veiculoID = strval( tmp )
                ;
                if( veiculoID < 400 || veiculoID > 611 )
                {
                    SendClientMessage( playerid, ERRO, " | ERRO | VEHICLE ID NOT WORK!" );
                    return 1;
                }
                new
                    Float:ev_x, Float:ev_y, Float:ev_z, Float:ev_a
                ;
                GetPlayerFacingAngle( playerid, ev_a );
                GetPlayerPos( playerid, ev_x, ev_y, ev_z );

                new
                    ev_c = random( 360 )
                ;
                if( IsPlayerInAnyVehicle( playerid ))
                {
                    new
                        Float:evz_a
                    ;
                    GetVehicleZAngle( GetPlayerVehicleID( playerid ), evz_a );
                    SetVehicleToRespawn( GetPlayerVehicleID( playerid ));
                    vEvento[ CreateVehicle( veiculoID, ev_x, ev_y, ev_z, evz_a, ev_c, ev_c, -1 ) ] = 1;
                }
                else
                {
                    PutPlayerInVehicle( playerid, vEvento[ VeiculosEvento ] = CreateVehicle( veiculoID, ev_x, ev_y, ev_z, ev_a, ev_c, ev_c, -1 ), 0 );
                    ivEvento[ vEvento[ VeiculosEvento ]] = 1;
                }
                VeiculosEvento ++;
                return 1;
            }
Thank you in advance to all.
Reply


Messages In This Thread
Unknown Command - by CharCoast - 01.12.2014, 17:06
Re: Unknown Command - by xCrazyMonkey - 03.12.2014, 12:36

Forum Jump:


Users browsing this thread: 2 Guest(s)