Hello!
Valaki tudna segíteni abba hogy ezt nekem le mentse és be is töltse dinivel?
#include <a_samp>
#include <zcmd>
new fido_timer[MAX_PLAYERS];
enum JatekosInfo
{
FOra,
FPerc,
FMPerc,
}
new FIdo[MAX_PLAYERS][JatekosInfo];
public OnPlayerConnect(playerid)
{
fido_timer[playerid] = SetTimerEx(\"tfido\", 1000, true, \"i\", playerid);
return 1;
}
forward tfido(playerid);
public tfido(playerid)
{
FIdo[playerid][FMPerc] ++;
if(FIdo[playerid][FMPerc] == 60)
{
FIdo[playerid][FMPerc] = 0;
FIdo[playerid][FPerc] ++;
SendClientMessage(playerid, -1, \"Percet ugrottál!\");
}
if(FIdo[playerid][FPerc] == 60)
{
FIdo[playerid][FMPerc] = 0;
FIdo[playerid][FPerc] = 0;
FIdo[playerid][FOra] ++;
SendClientMessage(playerid, -1, \"Órát ugrottál!\");
}
}
CMD:stats(playerid, params[])
{
new fido[256];
format(fido, sizeof(fido), \"|| Fent lévõ Óra: %02d | Perc: %02d | MásodPerc: %02d ||\", FIdo[playerid][FOra], FIdo[playerid][FPerc], FIdo[playerid][FMPerc]);
SendClientMessage(playerid, -1, fido);
return 1;
}
public OnPlayerDisconnect(playerid)
{
KillTimer(fido_timer[playerid]);
return 1;
}