10.05.2016, 21:55
Bom, meu problema й o seguinte. Eu to com um problema no meu cуdigo. Ele fica fazendo voltas e voltas e nгo seta a prуxima quantidade de EXP para o prуximo nнvel. E fica dando voltas e voltas, e acrescendo nнvel.
Resumindo, fica subindo o level infinitamente.
Код:
function::TimerLevel() {
foreach(new i : Player) {
if(!IsPlayerConnected(i)) continue;
if(APlayerData[i][pEXP] >= ObjectiveXP[i] && APlayerData[i][pLogado] == true) {
APlayerData[i][pEXP] = 0;
APlayerData[i][pNivel]++;
ObjectiveXP[i] = ObjectiveXP[i] * APlayerData[i][pNivel] * 2;
format(tString, sizeof(tString), " Vocк estб no nнvel %02d.", APlayerData[i][pNivel]);
SendClientMessage(i, COLOR_LIGHTBLUE, tString);
return 1;
}
}
return 1;
}


