Else-ul trebuie introdus in "case 0":
Modifica din:
case 0: {
if(PlayerInfo[playerid][pLevel] < 5) return SCM(playerid, -1, "Nu ai nivelul 5");
if(PlayerInfo[playerid][pShowTP] == 1) {
SCM(playerid, -1, "Ai dezactivat optiunea TICK/PING !");
TextDrawHideForPlayer(playerid, TickSV), TextDrawHideForPlayer(playerid, PingSV);
PlayerInfo[playerid][pShowTP] -=1;
Update(playerid, pShowTPx);
}
}
else { //<----- Linia ----
if(PlayerInfo[playerid][pShowTP] == 0)
{
SCM(playerid, -1, "Ai activat optiunea TICK/PING !");
TextDrawShowForPlayer(playerid, TickSV), TextDrawShowForPlayer(playerid, PingSV);
PlayerInfo[playerid][pShowTP] ++;
Update(playerid, pShowTPx);
}
}
In:
case 0: {
if(PlayerInfo[playerid][pLevel] < 5) return SCM(playerid, -1, "Nu ai nivelul 5");
if(PlayerInfo[playerid][pShowTP] == 1) {
SCM(playerid, -1, "Ai dezactivat optiunea TICK/PING !");
TextDrawHideForPlayer(playerid, TickSV), TextDrawHideForPlayer(playerid, PingSV);
PlayerInfo[playerid][pShowTP] -=1;
Update(playerid, pShowTPx);
}
else { //<----- Linia ----
if(PlayerInfo[playerid][pShowTP] == 0)
{
SCM(playerid, -1, "Ai activat optiunea TICK/PING !");
TextDrawShowForPlayer(playerid, TickSV), TextDrawShowForPlayer(playerid, PingSV);
PlayerInfo[playerid][pShowTP] ++;
Update(playerid, pShowTPx);
}
}
}
Si ai rezolvat problema. ?