Jump to content
  • 0

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


Question

Posted

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

3 answers to this question

Recommended Posts

  • 0
Posted

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;

}

  • 0
Posted (edited)
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.