25.06.2013, 21:25
Hello everyone, Help me out please. "SERVER: UNKNOWN COMMAND" keeps appearing when I type one of my commands.
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
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;
}
Thanks