zcmd, unknown command?
#1

hey everyone,

i made 2 of this cmds, both same, but i thought at first one i thought, maybe its cuz of the 20 in it, so i made the other cmd with "nitro" but still not working..

pawn Код:
CMD:nitro(playerid, params[])
{
    new Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInNosVehicle(playerid))
    {
        for( new i; i<sizeof(CarData); i++ )
        {
                x = CarData[i][Nos_x];
                y = CarData[i][Nos_y];
                z = CarData[i][Nos_z];
                rx = CarData[i][Nos_rx];
                ry = CarData[i][Nos_ry];
                rz = CarData[i][Nos_rz];
                return 0;
        }
        switch(vehicleid)
        {
            case 411:
            {
                PlayerInfo[playerid][SpecialNos] = CreateObject( 1010, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 100.0 );
                AttachObjectToVehicle( GetPlayerVehicleID(playerid), PlayerInfo[playerid][SpecialNos], x, y, z, rx, ry, rz );
            }
        }
    }
    else return SendClientMessage(playerid, COLOR_RED, "ERROR: there is no Special N20 bottle available for this vehicle");
    return 1;
}
CMD:n20(playerid, params[])
{
    new Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInNosVehicle(playerid))
    {
        for( new i; i<sizeof(CarData); i++ )
        {
                x = CarData[i][Nos_x];
                y = CarData[i][Nos_y];
                z = CarData[i][Nos_z];
                rx = CarData[i][Nos_rx];
                ry = CarData[i][Nos_ry];
                rz = CarData[i][Nos_rz];
                return 0;
        }
        switch(vehicleid)
        {
            case 411:
            {
                PlayerInfo[playerid][SpecialNos] = CreateObject( 1010, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 100.0 );
                AttachObjectToVehicle( GetPlayerVehicleID(playerid), PlayerInfo[playerid][SpecialNos], x, y, z, rx, ry, rz );
            }
        }
    }
    else return SendClientMessage(playerid, COLOR_RED, "ERROR: there is no Special N20 bottle available for this vehicle");
    return 1;
}
commands are both the same, but that doesnt matters right?

when i use 1 of those 2 cmds in game, it says SERVER: unknown command.

and i dont know wuts wrong with this

any help would be very appreciated

greets niels
Reply


Messages In This Thread
zcmd, unknown command? - by niels44 - 23.10.2012, 15:09
Re: zcmd, unknown command? - by MrCoder - 23.10.2012, 15:11
Re: zcmd, unknown command? - by niels44 - 23.10.2012, 15:14
Re: zcmd, unknown command? - by gtakillerIV - 23.10.2012, 15:14
Re: zcmd, unknown command? - by GordonP - 23.10.2012, 15:26
Re: zcmd, unknown command? - by gtakillerIV - 23.10.2012, 15:33
Re: zcmd, unknown command? - by niels44 - 23.10.2012, 15:36
Re: zcmd, unknown command? - by niels44 - 23.10.2012, 16:04

Forum Jump:


Users browsing this thread: 2 Guest(s)