[Ayuda] porque me dice que el comando no existe??
#1

Hola tengo un problema con el comando /entrar con los garajes bueno el problema es que yo pongo /entrar y me dice que el comando no existe pero en realidad si sirve bien pero ese es el unico error

Aqui dejo el comando

Quote:

CMD:entrar(playerid, params[])
{
new vehicleid = GetPlayerVehicleID(playerid);
new nume[MAX_PLAYER_NAME];
GetPlayerName(playerid, nume, sizeof(nume));
for(new i= 1; i<=maxgaraje; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, GarajInfo[i][Intrarex], GarajInfo[i][Intrarey], GarajInfo[i][Intrarez]))
{
if(GarajInfo[i][GarajPropietar] == nume[playerid])
{
if(IsPlayerInAnyVehicle(playerid))
{
curentg[playerid] = GarajInfo[i][GarajVirtual];
SetVehiclePos(vehicleid, GarajInfo[i][Iesirex], GarajInfo[i][Iesirey], GarajInfo[i][Iesirez]);
SetVehicleVirtualWorld(vehicleid, GarajInfo[i][GarajVirtual]); SetPlayerVirtualWorld(playerid, GarajInfo[i][GarajVirtual]);return 1;
}
else
{
curentg[playerid] = GarajInfo[i][GarajVirtual];
SetPlayerPos(playerid, GarajInfo[i][Iesirex], GarajInfo[i][Iesirey], GarajInfo[i][Iesirez]);
SetPlayerVirtualWorld(playerid, GarajInfo[i][GarajVirtual]);return 1;
}
}
else
{
if(GarajInfo[i][GarajStatus] == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
curentg[playerid] = GarajInfo[i][GarajVirtual];
SetVehiclePos(vehicleid, GarajInfo[i][Iesirex], GarajInfo[i][Iesirey], GarajInfo[i][Iesirez]);
SetVehicleVirtualWorld(vehicleid, GarajInfo[i][GarajVirtual]); SetPlayerVirtualWorld(playerid, GarajInfo[i][GarajVirtual]);
return 1;
}
else
{
curentg[playerid] = GarajInfo[i][GarajVirtual];
SetPlayerPos(playerid, GarajInfo[i][Iesirex], GarajInfo[i][Iesirey], GarajInfo[i][Iesirez]);
SetPlayerVirtualWorld(playerid, GarajInfo[i][GarajVirtual]);
return 1;
}
}
}
}
}
return 1;
}

Ayuda que puedo hacer para areglarlo? :S
Reply
#2

pawn Код:
CMD:entrar(playerid, params[])
{
    new vehicleid = GetPlayerVehicleID(playerid);
    new nume[MAX_PLAYER_NAME];
    GetPlayerName(playerid, nume, sizeof(nume));
    for(new i= 1; i<=maxgaraje; i++)
    {
        if(IsPlayerInRangeOfPoint(playerid, 5.0, GarajInfo[i][Intrarex], GarajInfo[i][Intrarey], GarajInfo[i][Intrarez]))
        {
            if(GarajInfo[i][GarajPropietar] == nume[playerid])
            {
                if(IsPlayerInAnyVehicle(playerid))
                {
                    curentg[playerid] = GarajInfo[i][GarajVirtual];
                    SetVehiclePos(vehicleid, GarajInfo[i][Iesirex], GarajInfo[i][Iesirey], GarajInfo[i][Iesirez]);
                    SetVehicleVirtualWorld(vehicleid, GarajInfo[i][GarajVirtual]); SetPlayerVirtualWorld(playerid, GarajInfo[i][GarajVirtual]);
                }
                else
                {
                    curentg[playerid] = GarajInfo[i][GarajVirtual];
                    SetPlayerPos(playerid, GarajInfo[i][Iesirex], GarajInfo[i][Iesirey], GarajInfo[i][Iesirez]);
                    SetPlayerVirtualWorld(playerid, GarajInfo[i][GarajVirtual]);
                }
            }
            if(GarajInfo[i][GarajStatus] == 0)
            {
                if(IsPlayerInAnyVehicle(playerid))
                {
                    curentg[playerid] = GarajInfo[i][GarajVirtual];
                    SetVehiclePos(vehicleid, GarajInfo[i][Iesirex], GarajInfo[i][Iesirey], GarajInfo[i][Iesirez]);
                    SetVehicleVirtualWorld(vehicleid, GarajInfo[i][GarajVirtual]); SetPlayerVirtualWorld(playerid, GarajInfo[i][GarajVirtual]);
                }
                else
                {
                    curentg[playerid] = GarajInfo[i][GarajVirtual];
                    SetPlayerPos(playerid, GarajInfo[i][Iesirex], GarajInfo[i][Iesirey], GarajInfo[i][Iesirez]);
                    SetPlayerVirtualWorld(playerid, GarajInfo[i][GarajVirtual]);
                }
            }
        }
    }
    return 1;
}
Reply
#3

Me sigue diciendo que el comando es incorrecto ayuda
Reply
#4

pawn Код:
CMD:entrar(playerid, params[])
{
    new vehicleid = GetPlayerVehicleID(playerid), nume[MAX_PLAYER_NAME];
    GetPlayerName(playerid, nume, sizeof(nume));
    for(new i = 1; i <= maxgaraje; i++)
    {
        if(IsPlayerInRangeOfPoint(playerid, 5.0, GarajInfo[i][Intrarex], GarajInfo[i][Intrarey], GarajInfo[i][Intrarez]))
        {
            if(GarajInfo[i][GarajPropietar] == nume[playerid] && IsPlayerInAnyVehicle(playerid))
            {
                curentg[playerid] = GarajInfo[i][GarajVirtual];
                SetVehiclePos(vehicleid, GarajInfo[i][Iesirex], GarajInfo[i][Iesirey], GarajInfo[i][Iesirez]);
                SetVehicleVirtualWorld(vehicleid, GarajInfo[i][GarajVirtual]); SetPlayerVirtualWorld(playerid, GarajInfo[i][GarajVirtual]);return 1;
            }
            if(GarajInfo[i][GarajPropietar] == nume[playerid] && !IsPlayerInAnyVehicle(playerid))
            {
                curentg[playerid] = GarajInfo[i][GarajVirtual];
                SetPlayerPos(playerid, GarajInfo[i][Iesirex], GarajInfo[i][Iesirey], GarajInfo[i][Iesirez]);
                SetPlayerVirtualWorld(playerid, GarajInfo[i][GarajVirtual]);return 1;
            }
        }
        if(GarajInfo[i][GarajStatus] == 0 && IsPlayerInAnyVehicle(playerid))
        {
            curentg[playerid] = GarajInfo[i][GarajVirtual];
            SetVehiclePos(vehicleid, GarajInfo[i][Iesirex], GarajInfo[i][Iesirey], GarajInfo[i][Iesirez]);
            SetVehicleVirtualWorld(vehicleid, GarajInfo[i][GarajVirtual]); SetPlayerVirtualWorld(playerid, GarajInfo[i][GarajVirtual]);
        }
        if(GarajInfo[i][GarajStatus] == 0 && !IsPlayerInAnyVehicle(playerid))
        {
            curentg[playerid] = GarajInfo[i][GarajVirtual];
            SetPlayerPos(playerid, GarajInfo[i][Iesirex], GarajInfo[i][Iesirey], GarajInfo[i][Iesirez]);
            SetPlayerVirtualWorld(playerid, GarajInfo[i][GarajVirtual]);
        }
    }
    return 1;
}
Reply
#5

Men no me sirvio :S y me lo enpeoraste porque ahora cuanto uso el comando salgo bugeado en la granja :S ayuda
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)