19.07.2015, 12:10
Hey!
I was making bank time system like if the time is 13 and player in bank it gives the player money and sends client message to him!
i made it with public and forwarded the callback it compiles without any error but when i try it , it dont give me money or send client message!
Code:
Please help me!
I will +rep for any help!
Thanks!
Ironmen
I was making bank time system like if the time is 13 and player in bank it gives the player money and sends client message to him!
i made it with public and forwarded the callback it compiles without any error but when i try it , it dont give me money or send client message!
Code:
Код:
forward OnPlayerInBank(playerid);
public OnPlayerInBank(playerid)
{
new hour, minutes;
GetPlayerTime(playerid, hour, minutes);
if(inbank[playerid] == 1)
{
if(hour == 13 && minutes == 00)
{
SendClientMessage(playerid, COLOR_WHITE, "The bank paid you 15 DCash!");
GivePlayerMoney(playerid, 15);
}
}
return 1;
}
I will +rep for any help!
Thanks!
Ironmen


