Jump to content

[REZOLVAT] Gamemode from zero x2 warring


SorinElCapo
 Share

Recommended Posts

  • Username:SorinElCapo
  • Problema întălnită:error 002: only a single statement (or expression) can follow each "case"
  • Detalii despre problemă: Am facut un gm de la 0 si am facut sa poate dezactiva FPS/TICK si Ceas/Data prin /hud
  • Ce ai încercat să faci înainte să postezi?:Nmk
  • Cod sursă (recomandat pastebin.com) : https://pastebin.com/uxXsdvZi
  • Alte detalii:Ajutor !!
Link to comment
Share on other sites

  • Administrator

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

Link to comment
Share on other sites

T/C Rezolvat

Acum 2 minute, Leonard a spus:

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

Am rezolvat, acum scriam T/C =]]], Dar merci de ajutor ❤️ poti da T/C

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...