Please help fast
#1

See the code and told me why when i do
/fedit [Slot] Vehicle [Vehicleslot] [VehicleID] [Color1] [Color2]

When i writes in Vehicle slot 6
thats told me unknown command


PHP код:
    else if(!strcmp(option"vehicle"true7))
    {
         if(
sscanf(params"is[32]iiii"idxoptionvehvehidcol1col2)) return SendClientMessage(playeridCOLOR_WHITE"USAGE: /fedit [familyslot] vehicle [vehicleslot] [vehiclemodel] [color1] [color2]");
        if(
veh || veh 25) return SendClientMessage(playeridCOLOR_GREY"Vehicle slots are between 1 and 25.");
        
veh veh-1;
        if(
FamInfo[idx][fVehType][veh])
        {
            
FamInfo[idx][fVehType][veh] = 0;
            
FamInfo[idx][fVehCoX][veh] = 0;
            
FamInfo[idx][fVehCoY][veh] = 0;
            
FamInfo[idx][fVehCoZ][veh] = 0;
            
FamInfo[idx][fVehRot][veh] = 0;
            
FamInfo[idx][fVehCol1][veh] = 0;
            
FamInfo[idx][fVehCol2][veh] = 0;
            
DestroyVehicle(FamInfo[idx][fVeh][veh]);
        }
        if(
vehid)
        {
            
FamInfo[idx][fVehType][veh] = vehid;
            
GetPlayerPos(playeridFamInfo[idx][fVehCoX][veh], FamInfo[idx][fVehCoY][veh], FamInfo[idx][fVehCoZ][veh]);
            
GetPlayerFacingAngle(playeridFamInfo[idx][fVehRot][veh]);
            
FamInfo[idx][fVehCol1][veh] = col1;
            
FamInfo[idx][fVehCol2][veh] = col2;
            
FamInfo[idx][fVeh][veh] = CreateVehicle(vehidFamInfo[idx][fVehCoX][veh], FamInfo[idx][fVehCoY][veh], FamInfo[idx][fVehCoZ][veh], FamInfo[idx][fVehRot][veh], FamInfo[idx][fVehCol1][veh], FamInfo[idx][fVehCol2][veh], 12000);
            
ChangeVehicleColor(FamInfo[idx][fVeh][veh], FamInfo[idx][fVehCol1][veh], FamInfo[idx][fVehCol2][veh]);
            
Fam[FamInfo[idx][fVeh][veh]] = idx;
            
format(stringsizeof(string), "{FF0000}[Admin Warn]{FF6347} %s has set family %d's vehicle slot %d to ID %d."NORPN(playerid), idxveh+1vehid);
            
SendAdminMessage(COLOR_DARKRED1string);
        }
    }
    else 
SendClientMessage(playeridCOLOR_GREY"Invalid option.");
    return 
1;

Reply


Messages In This Thread
Please help fast - by salev13 - 14.01.2015, 18:16

Forum Jump:


Users browsing this thread: 1 Guest(s)