Jump to content
  • 0

Problema GM...


Buga.

Question

Salut,am si eu o problema,acesta fiind:

Comanda /2levelup este buguita,insa nu ii pot da de cap!

Precum stiti,aceasta comanda da 2 levele in plus jucatorilor cu level 1.

Dar,la comanda mea este ceva,care chiar daca ai level 1,nu te lasa.

Aici aveti cmd

[pawn]if(strcmp(cmd, "/2levelup", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

    if(PlayerInfo[playerid][pLevel] == 1 && nolevell == 1)

{

PlayerInfo[playerid][pLevel] += 2;

SendClientMessage(playerid, COLOR_GREY, "  Ai Primit 2 LEVEL UP !");

}

else

{

SendClientMessage(playerid, COLOR_GREY, " You can`t use this command at this time !");

}

}

return 1;[/pawn]

Puteti rezolva problema?Multumesc anticipat.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Incearca asa:

[pawn]if(strcmp(cmd, "/2levelup", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

    if(PlayerInfo[playerid][pLevel] == 1)

{

PlayerInfo[playerid][pLevel] += 2;

SendClientMessage(playerid, COLOR_GREY, "  Ai Primit 2 LEVEL UP !");

}

else

{

SendClientMessage(playerid, COLOR_GREY, " You can`t use this command at this time !");

}

}

return 1;

} [/pawn]

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.