04.11.2014, 18:42
Hola bueno resulta que al forzar el payday no me da el punto de experiencia ayudaa.
Dejo codigo:
Dejo codigo:
Код:
forward PayDay();
public PayDay()
{
for(new playerid; playerid<MAX_PLAYERS; playerid++)
{
new str[200], gastosx, gananciasx, pagax, nivelp=Info[playerid][jNivel], mrep;
if(nivelp==1){pagax=750;mrep=7;} else if(nivelp==2){pagax=860;mrep=12;} else if(nivelp==3){pagax=980;mrep=17;} else if(nivelp==4){pagax=1200;mrep=24;}
gananciasx=pagax;
SendClientMessage(playerid, -1, "-----Dia de paga-----");
format(str, 200, "Gastos %d || Ganancias %d", gastosx, gananciasx);
SendClientMessage(playerid, -1, str);
SendClientMessage(playerid, -1, "---------------------");
if(Info[playerid][jRep]<mrep){Info[playerid][jRep]++;}
timerp=SetTimer("PayDay", 60*60000, false);
}
return 1;
}


