mR.KerigaN Posted July 7, 2014 Posted July 7, 2014 Nick: mR.KerigaNProblema: la comanda /bonustrivia cand raspund corect nu imi seteaza pe 1/25 2/25 si asa mai deaparte ramane 0/25Erori / warnings: Nu imi da eroriLini/script: -Ai incercat sa rezolvi singur ?: Da
mR.KerigaN Posted July 7, 2014 Author Posted July 7, 2014 //----------------------------------------------------------------------------------------------------- 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; }
Question
mR.KerigaN
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