SERVER: UNKOWN COMMAND
#1

Hello everyone, Help me out please. "SERVER: UNKNOWN COMMAND" keeps appearing when I type one of my commands.
pawn Код:
dcmd_getv(playerid,params[])
{
    new Index;
    new tmp[128];  tmp  = strtok(params,Index);
    if(!strlen(tmp)) return
    SendClientMessage(playerid, COLOUR_RED, "Usage: {FFFFFF}/getv [Vehicle ID]");
    new veh = strval(tmp);
    if(!IsValidVehicle(veh)) return Error(playerid, 5);
    new Float:X,Float:Y,Float:Z;
    new Float:Angle,int1,virt;
    new str[128];
    GetPlayerPos(playerid, X,Y,Z);
    GetPlayerFacingAngle(playerid,Angle);
    virt = GetPlayerVirtualWorld(playerid);
    int1 = GetPlayerInterior(playerid);
    SetVehiclePos(veh, X,Y,Z);
    SetVehicleZAngle(veh, Angle);
    LinkVehicleToInterior(veh, int1);
    SetVehicleVirtualWorld(veh, virt);
    PutPlayerInVehicle(playerid, veh, 0);
    format(str, sizeof(str), "|-_ You Have Teleported Vehicle ID: %d - Name: %s To Your Position _-|", veh, VehicleNames[veh - 400]);
    SendClientMessage(playerid, COLOUR_BLUE, str);
    return 1;
}
The command works, I get my vehicle. But the last SendClientMessage was not carry out, instead saying "SERVER: UNKNOWN COMMAND". What can be the problem?
Thanks
Reply


Messages In This Thread
SERVER: UNKOWN COMMAND - by BpX - 25.06.2013, 21:25
Re: SERVER: UNKOWN COMMAND - by BpX - 26.06.2013, 08:50
AW: SERVER: UNKOWN COMMAND - by Skimmer - 26.06.2013, 08:58
Re: SERVER: UNKOWN COMMAND - by BpX - 26.06.2013, 10:04
Re: SERVER: UNKOWN COMMAND - by iJumbo - 26.06.2013, 10:11
Re: SERVER: UNKOWN COMMAND - by BpX - 26.06.2013, 10:41
Re: SERVER: UNKOWN COMMAND - by iJumbo - 26.06.2013, 10:44
Re: SERVER: UNKOWN COMMAND - by IperFexoK - 26.06.2013, 10:46
Re: SERVER: UNKOWN COMMAND - by BpX - 26.06.2013, 11:59
Re: SERVER: UNKOWN COMMAND - by Jefff - 26.06.2013, 15:08

Forum Jump:


Users browsing this thread: 2 Guest(s)