SA-MP Forums Archive
clan cmds error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: clan cmds error (/showthread.php?tid=420852)



clan cmds error - Pranesh - 07.03.2013

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;
		}



Re: clan cmds error - batonsa - 07.03.2013

Код:
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.