Jump to content
  • 0

Salut cum pot sa fac comanda cmd:gotocp pt pData?


GabyRo.off

Question

imi da aceste erori 

C:\Users\Administrator\Desktop\RPG.AFFGANG.RO\gamemodes\dty.pwn(2357) : error 001: expected token: ")", but found "]"
C:\Users\Administrator\Desktop\RPG.AFFGANG.RO\gamemodes\dty.pwn(2357) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\RPG.AFFGANG.RO\gamemodes\dty.pwn(2357) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\RPG.AFFGANG.RO\gamemodes\dty.pwn(2357) : fatal error 107: too many error messages on one line
 

si am adaugat aceasta comanda 

 

}
CMD:gotocp(playerid, params[]) {
    if(pData[playerid][Admin] < 5) return SendClientMessage(playerid, -1, "Nu esti admin");
    if(Checkpoint][playerid] == 0) return SendClientMessage(playerid, COLOR_GREY, "Nu ai un checkpoint activ");
    SetPlayerPos(playerid, CheckpointPos[playerid][0], CheckpointPos[playerid][1], CheckpointPos[playerid][2]);
    new vw = GetPlayerVirtualWorld(playerid);
    SetPlayerVirtualWorld(playerid, vw);
    SetPlayerInterior(playerid, 0);
    return 1;
}

 

poza cu linia:Imagine

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

CMD:gotocp(playerid, params[])

{

    if(pData[playerid][Admin] < 5)

    {

        SendClientMessage(playerid, -1, "Nu esti admin");

        return 0;

    }

 

    if(Checkpoint[playerid] == 0)

    {

        SendClientMessage(playerid, COLOR_GREY, "Nu ai un checkpoint activ");

        return 0;

    }

 

    SetPlayerPos(playerid, CheckpointPos[playerid][0], CheckpointPos[playerid][1], CheckpointPos[playerid][2]);

    new vw = GetPlayerVirtualWorld(playerid);

    SetPlayerVirtualWorld(playerid, vw);

    SetPlayerInterior(playerid, 0);

    return 1;

}

Link to comment
Share on other sites

  • 0
CMD:gotocp(playerid, params[]) {
    if(pData[playerid][Admin] < 5) return SendClientMessage(playerid, -1, "Nu esti admin");
	if(Checkpoint[playerid] == 0) return SendClientMessage(playerid, COLOR_GREY, "Nu ai un checkpoint activ");

    SetPlayerPos(playerid, CheckpointPos[playerid][0], CheckpointPos[playerid][1], CheckpointPos[playerid][2]);
    SetPlayerInterior(playerid, 0);
    
    new vw = GetPlayerVirtualWorld(playerid);
    SetPlayerVirtualWorld(playerid, vw);

    return 1;
} // iti recomand sa treci pe YCMD, ramane la alegerea ta.

 

Edited by Gheboasa
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
Answer this question...

×   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.