Jump to content

Question

Posted

Nick: mR.KerigaN

Problema: la comanda /bonustrivia cand raspund corect nu imi seteaza pe 1/25 2/25 si asa mai deaparte ramane 0/25

Erori / warnings: Nu imi da erori

Lini/script: -

Ai incercat sa rezolvi singur ?: Da

2 answers to this question

Recommended Posts

Posted

//-----------------------------------------------------------------------------------------------------

if(strcmp(cmd, "/bonustrivia", true) == 0)

    {

      if(IsPlayerConnected(playerid))

      {

      SendClientMessage(playerid, COLOR_GREY,"# Level 1 # - 25 correct answers - 100.000$ + 5 respect points.");

    SendClientMessage(playerid, COLOR_GREY,"# Level 2 # - 50 corrent answers - 150.000$ + 10 respect points.");

    SendClientMessage(playerid, COLOR_GREY,"# Level 3 # - 100 correct answers - 300.000$ + 20 respect points.");

    SendClientMessage(playerid, COLOR_GREY,"# Level 4 # - 200 correct answers - 1.000.000$ + 50 respect points.");

    new triviarewards = PlayerInfo[playerid][TriviaReward];

    if(PlayerInfo[playerid][TriviaSkill] == 0)

    {

      SendClientMessage(playerid, COLOR_YELLOW2,"** You are level 1 **");

      format(string, 256 ,"* Correct answers [%d/25] *", triviarewards);

      SendClientMessage(playerid, COLOR_LIGHTRED, string);

      return 1;

    }

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

    {

      SendClientMessage(playerid, COLOR_YELLOW2,"** You are level 2 **");

      format(string, 256 ,"* Correct answers [%d/50] *", triviarewards);

      SendClientMessage(playerid, COLOR_LIGHTRED, string);

      return 1;

    }

    if(PlayerInfo[playerid][TriviaSkill] == 2)

    {

      SendClientMessage(playerid, COLOR_YELLOW2,"** You are level 3 **");

      format(string, 256 ,"* Correct answers [%d/100] *", triviarewards);

      SendClientMessage(playerid, COLOR_LIGHTRED, string);

      return 1;

    }

    if(PlayerInfo[playerid][TriviaSkill] == 3)

    {

      SendClientMessage(playerid, COLOR_YELLOW2,"** You are level 4 **");

      format(string, 256 ,"* Correct answers [%d/200] *", triviarewards);

      SendClientMessage(playerid, COLOR_LIGHTRED, string);

      return 1;

    }

    }

    return 1;

    }

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.