Problems with /v command
#1

I've just swapped over to zcmd, and all my other commands work, but this one doesn't:

pawn Код:
zcmd(v, playerid, params[])
{
    new vehicle, string[128];
    if (!sscanf(params, "i", vehicle))
    {
      new Float:x,Float:y, Float:z, Float:angle;
      GetPlayerPos(playerid,x,y,z);
      GetPlayerFacingAngle(playerid,angle);
      CreateVehicle(vehicle, x, y, z, angle, 0, 0, 9999999999);
        format(string,sizeof(string),"You have spawned VID %d at your location.",vehicle);
      SendClientMessage(playerid, COLOR_GREEN, string);
    }
    else return SendClientMessage(playerid,COLOR_RED,"USAGE: /v [vehicleid]");
    return 1;
}
It tells me I've spawned for instance VID 520(a hydra) but it doesn't actually spawn anything. I've tried different respawn times but that doesn't seem to work. Is there a max or min?
Reply


Messages In This Thread
Problems with /v command - by biltong - 27.01.2010, 15:53
Re: Problems with /v command - by DeathOnaStick - 27.01.2010, 17:57
Re: Problems with /v command - by Niixie - 27.01.2010, 18:12
Re: Problems with /v command - by biltong - 27.01.2010, 18:52
Re: Problems with /v command - by biltong - 12.02.2010, 15:39
Re: Problems with /v command - by MadeMan - 12.02.2010, 16:00
Re: Problems with /v command - by biltong - 12.02.2010, 17:40
Re: Problems with /v command - by MadeMan - 12.02.2010, 20:49
Re: Problems with /v command - by biltong - 13.02.2010, 06:35
Re: Problems with /v command - by mansonh - 13.02.2010, 07:41

Forum Jump:


Users browsing this thread: 1 Guest(s)