CMD problem ( need help ASAP )
#1

Just want to use a cmd, if that player in a vehicle then he can use the CMD,
Also there will some more condition

Here i want

PHP код:
CMD:das(playeridparams[])
{
    if(
IsPlayerInAnyVehicle(playerid) && !PlayerInfo[playerid][pMember] == 10 && !PlayerInfo[playerid][pLeader] == 10 && !PlayerInfo[playerid][pJob] == 17 && !PlayerInfo[playerid][pJob2] == 17 && !PlayerInfo[playerid][pTaxiLicense] == 1)
    {
        
SendClientMessage(playerid, -1"You must be in any vehicle to use this command.");//1
        
return 1;
    }
    ...
Other codes.
    return 
1;

Now, my problem is, it shows no error or warning, but it don't work when i use this cmd. Like, if i am not in the car, it even don't show the point //1 line.

What should i do?
Any quick fix please.
Reply


Messages In This Thread
CMD problem ( need help ASAP ) - by SoFahim - 08.01.2016, 10:20
Re: CMD problem ( need help ASAP ) - by Karan007 - 08.01.2016, 10:27
Re: CMD problem ( need help ASAP ) - by saffierr - 08.01.2016, 10:30
Re: CMD problem ( need help ASAP ) - by SoFahim - 08.01.2016, 10:37
Re: CMD problem ( need help ASAP ) - by Karan007 - 08.01.2016, 10:58
Re: CMD problem ( need help ASAP ) - by lucamsx - 08.01.2016, 12:31
Re: CMD problem ( need help ASAP ) - by SoFahim - 08.01.2016, 12:56
Re: CMD problem ( need help ASAP ) - by Crayder - 08.01.2016, 16:52

Forum Jump:


Users browsing this thread: 4 Guest(s)