How to use "DestroyVehicle" whitout player in vehicle?
#17

No clue, could be anything, but adding other strcmp commands like that should work
PHP Code:
//
    
if(strcmp(cmdtext"/hello1"true) == 0) {
        return 
SendClientMessage(playerid, -1"Hello1");
    }
    if(
strcmp(cmdtext,"/fb"true3) == && cmdtext[3] <= ' ') {
        if(
cmdtext[3] == EOS || cmdtext[4] == EOS) {
            return 
SendClientMessage(playerid, -1"/fb <car id>");
        }
        if(
DestroyVehicle(strval(cmdtext[4])) == 0) {
            return 
SendClientMessage(playerid, -1"Invalid vehicleid!");
        }
        return 
SendClientMessage(playerid, -1"Vehicle destroyed!");
    }
    if(
strcmp(cmdtext"/hello2"true) == 0) {
        return 
SendClientMessage(playerid, -1"Hello2");
    } 
if /hello1 and /hello2 is working that the problem is within your code

So if your other commands are also strcmp based they should work
Reply


Messages In This Thread
How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 31.05.2017, 18:01
Re: How to use "DestroyVehicle" whitout player in vehicle? - by JasonRiggs - 31.05.2017, 18:08
Re: How to use "DestroyVehicle" whitout player in vehicle? - by skuller12 - 31.05.2017, 18:16
Re: How to use "DestroyVehicle" whitout player in vehicle? - by JasonRiggs - 31.05.2017, 18:17
Re: How to use "DestroyVehicle" whitout player in vehicle? - by skuller12 - 31.05.2017, 18:20
Re: How to use "DestroyVehicle" whitout player in vehicle? - by JasonRiggs - 31.05.2017, 18:23
Re: How to use "DestroyVehicle" whitout player in vehicle? - by JasonRiggs - 31.05.2017, 18:25
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 31.05.2017, 19:46
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 31.05.2017, 20:17
Re: How to use "DestroyVehicle" whitout player in vehicle? - by Whatname - 31.05.2017, 20:38
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 31.05.2017, 20:59
Re: How to use "DestroyVehicle" whitout player in vehicle? - by Whatname - 31.05.2017, 21:11
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 31.05.2017, 21:13
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 31.05.2017, 21:33
Re: How to use "DestroyVehicle" whitout player in vehicle? - by Nero_3D - 31.05.2017, 21:55
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 31.05.2017, 22:47
Re: How to use "DestroyVehicle" whitout player in vehicle? - by Nero_3D - 31.05.2017, 23:25
Re: How to use "DestroyVehicle" whitout player in vehicle? - by ShihabSoft - 01.06.2017, 00:00
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 01.06.2017, 01:03
Re: How to use "DestroyVehicle" whitout player in vehicle? - by skuller12 - 01.06.2017, 05:23
Re: How to use "DestroyVehicle" whitout player in vehicle? - by Nero_3D - 01.06.2017, 21:17
Re: How to use "DestroyVehicle" whitout player in vehicle? - by JuzDoiT - 02.06.2017, 20:46
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 02.06.2017, 21:59
Re: How to use "DestroyVehicle" whitout player in vehicle? - by tekass - 06.06.2017, 01:58

Forum Jump:


Users browsing this thread: 3 Guest(s)