clan cmds error
#1

hey guy as i was making some clan cmds but here i cant do it when they player is eZ clan member still he cant use this cmd can any one help
Код:
if (strcmp("/ezfix", cmdtext, true, 10) == 0)
    {
      if(iseZmember[playerid] == true)
      {
        RepairVehicle(GetPlayerVehicleID(playerid));
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "AAD: Your Vehicle is now fixed");
        }
		else SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are not allowed to use this command");
        return 1;
 		}
  	return 0;
		}
Reply
#2

Код:
CMD:ezfix(playerid, params [])//or use that strcmp line of yours
{
    if(iseZmember[playerid] == true)
    {
        RepairVehicle(GetPlayerVehicleID(playerid));
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "AAD: Your Vehicle is now fixed");
    }
    else SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are not allowed to use this command");
    return 1;
}
Or the other variant is your variables are messed up.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)