Timer doesnt work
#1

in onfilterscriptinut()

SetTimer("Chkmoney", 30000, true);

outside it..
new money[MAX_PLAYERS];
forward Chkmoney();
public Chkmoney()
{
new pname[MAX_PLAYER_NAME],astring[MAX_PLAYER_NAME+128];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerMoney(i) > money[i])
{
GetPlayerName(i,pname,sizeof(pname));
format(astring,sizeof(astring),"%s(%i) has a cash imbalence, please investigate!");
SendClientMessageToAdmins(0xFF0000FF,astring);
}
}
}
}
Reply


Messages In This Thread
Timer doesnt work - by jtemple042996 - 05.06.2012, 20:01
Re: Timer doesnt work - by Fj0rtizFredde - 05.06.2012, 20:53
Re: Timer doesnt work - by jtemple042996 - 07.06.2012, 03:21
Re: Timer doesnt work - by SnG.Scot_MisCuDI - 07.06.2012, 06:46
Re: Timer doesnt work - by jtemple042996 - 12.06.2012, 19:45

Forum Jump:


Users browsing this thread: 1 Guest(s)