Jump to content

warning 202: number of arguments does not match definition


staKS

Recommended Posts

YCMD:fish(playerid, params[], help) {
    if(PlayerInfo[playerid][pJob] != 7)
    return SCM(playerid, COLOR_GREY, "Nu esti pescar!");
    if(!PlayerToPoint(40, playerid, 2118.5134,-93.6177,2.0291,129.1079)) {
        if(targetfind[playerid] != -1)
            return ShowPlayerDialogEx(playerid, DIALOG_CHECKPOINT, DIALOG_STYLE_MSGBOX, "Checkpoint", "Ai deja un checkpoint activ.\nDoresti sa-l anulezi? Daca da, apasa pe 'Ok'.", "Ok", "Exit");
        CP[playerid] = 53;
        SCM(playerid, COLOR_GREY, "Nu esti in zona in care poti pescui.");
        return SetPlayerCheckpoint(playerid,2118.5134,-93.6177,2.0291,129.1079, 3);
}

 

 

si la asta la fel ce pot face

YCMD:gotofish(playerid, params[], help) {
     if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_WHITE, AdminOnly);
      else SetPlayerPosEx(false, playerid, 2118.5134,-93.6177,2.0291,129.1079);
      SetPlayerInterior(playerid,0);
      SetPlayerVirtualWorld(playerid,0);
      return true;
    }

Link to comment
Share on other sites

CMD:gotofish(playerid, params[]) {
    if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_WHITE, AdminOnly);

      SetPlayerPosEx(playerid, 2118.5134,-93.6177,2.0291);  
      SetPlayerInterior(playerid,0);
      SetPlayerVirtualWorld(playerid,0);
      return true;
}

 

 

Link to comment
Share on other sites

Ai pus la PlayerToPoint, la SetPlayerCheckpoint si la SetPlayerPosEx coordonatele cu tot cu Rotatie, trebuie puse doar primele 3 coordonate, x, y si z.

Adica asa ar trebui sa arate:
 

YCMD:fish(playerid, params[], help) {
    if(PlayerInfo[playerid][pJob] != 7)
    return SCM(playerid, COLOR_GREY, "Nu esti pescar!");
    if(!PlayerToPoint(40, playerid, 2118.5134, -93.6177, 2.0291)) {
        if(targetfind[playerid] != -1)
            return ShowPlayerDialogEx(playerid, DIALOG_CHECKPOINT, DIALOG_STYLE_MSGBOX, "Checkpoint", "Ai deja un checkpoint activ.\nDoresti sa-l anulezi? Daca da, apasa pe 'Ok'.", "Ok", "Exit");
        CP[playerid] = 53;
        SCM(playerid, COLOR_GREY, "Nu esti in zona in care poti pescui.");
        return SetPlayerCheckpoint(playerid, 2118.5134, -93.6177, 2.0291, 3);
}


YCMD:gotofish(playerid, params[], help) {
     if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_WHITE, AdminOnly);
      else SetPlayerPosEx(false, playerid, 2118.5134, -93.6177, 2.0291);
      SetPlayerInterior(playerid,0);
      SetPlayerVirtualWorld(playerid,0);
      return true;
    }

Am lasat acel "false" la SetPlayerPosEx deoarece presupun ca asa ai tu facuta acea functie customizata.

Discord:
! Akan !#6675

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.