Problema con comando.
#1

Hola, uso este comando en un filterscript. Los comandos de ese pwn me andan bien, menos este, cuando lo pongo dice Unknown Command.

PHP код:
CMD:crearvehiculo(playeridparams[])
{
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playeridCOLOR_RED"LVRP: Usted no es administrador.");
    new
        
Float:Pos[4],
        
ivPrice,
        
ivColors[2],
        
iMsg[148];
    if(
sscanf(params"iiii"vModelivPriceivColors[0], ivColors[1])) return SendClientMessage(playerid, -1""#CRED"Usa: "#CORANGE"/crearvehiculo < Modelo > < Precio > < Color 1 > < Color 2 >");
    
GetPlayerPos(playeridPos[0], Pos[1], Pos[2]);
    
GetPlayerFacingAngle(playeridPos[3]);
    ++ 
Total_Veh_Created;
    
vInfo[Total_Veh_Created][vModel]     = vModel;
    
vInfo[Total_Veh_Created][vColor1]     = ivColors[0];
    
vInfo[Total_Veh_Created][vColor2]     = ivColors[1];
    
vInfo[Total_Veh_Created][vPrice]     = ivPrice;
    
vInfo[Total_Veh_Created][vPosX]     = Pos[0];
    
vInfo[Total_Veh_Created][vPosY]     = Pos[1];
    
vInfo[Total_Veh_Created][vPosZ]     = Pos[2];
    
vInfo[Total_Veh_Created][vPosA]     = Pos[3];
    
strmid(vInfo[Total_Veh_Created][vOwner], "Concecionaria"02020);
    
strmid(vInfo[Total_Veh_Created][vPlate], "LV-002"03232);
    
vInfo[Total_Veh_Created][vPaintJ]   = 0;
    
vInfo[Total_Veh_Created][vLocked]   = 1;
    new
        
vFile[15];
    
format(vFilesizeof(vFile), "/Coches/%d.ini"Total_Veh_Created);
    
INI_Open(vFile);
    
INI_WriteInt("Model"vModel);
    
INI_WriteInt("Color1"ivColors[0]);
    
INI_WriteInt("Color2"ivColors[1]);
    
INI_WriteInt("Price"ivPrice);
    
INI_WriteString("Owner""Concecionaria");
    
INI_WriteFloat("vPosX"Pos[0]);
    
INI_WriteFloat("vPosY"Pos[1]);
    
INI_WriteFloat("vPosZ"Pos[2]);
    
INI_WriteFloat("vPosA"Pos[3]);
    
INI_WriteString("Plate""LV");
    
INI_WriteInt("PaintJ"0);
    
INI_Save();
    
INI_Close();
    new
        
cCar CreateVehicle(vModelPos[0], Pos[1], Pos[2], Pos[3], ivColors[0], ivColors[1], 500000);
    
SetVehicleNumberPlate(cCar"LV");
    
OwnedVeh(cCar) = Total_Veh_Created;
    
SavePrivVeh(Total_Veh_Created);
    
format(iMsgsizeof(iMsg), ""#CYELLOW"Vehicle: "#CBLUE"%d      (VID: %i) "#CYELLOW"has creado este vehiculo. Precio: "#CBLUE"$%i "#CYELLOW"Placa: "#CBLUE"cambiame", vModel, Total_Veh_Created, ivPrice);
    
SendClientMessage(playerid, -1iMsg);
    return 
1;

Gracias.
Reply


Messages In This Thread
Problema con comando. - by jwalker - 12.03.2013, 01:38
Re: Problema con comando. - by [CG]Milito - 12.03.2013, 02:00
Respuesta: Problema con comando. - by jwalker - 12.03.2013, 02:07
Respuesta: Problema con comando. - by OTACON - 12.03.2013, 08:36
Respuesta: Problema con comando. - by jwalker - 14.03.2013, 03:40
Respuesta: Problema con comando. - by OTACON - 14.03.2013, 15:26
Respuesta: Problema con comando. - by jwalker - 14.03.2013, 20:14

Forum Jump:


Users browsing this thread: 1 Guest(s)