08.01.2016, 16:52
Quote:
you can't do it like this
Код:
!PlayerInfo[playerid][pMember] == 10 Код:
PlayerInfo[playerid][pMember] != 10 Код:
CMD:das(playerid, params[]) { 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; } |
Binary NOT, '!', will cause any true to be false and vice-versa.
This:
Код:
(!(PlayerInfo[playerid][pMember] == 10))