Why this bugs
#10

Quote:
Originally Posted by LarzI
Посмотреть сообщение
Here, let me give a sample code:
pawn Код:
#include <a_samp>

#define FILTERSCRIPT
new gTickCount;
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new vehicleid = GetPlayerVehicleID(playerid);
    if(GetVehicleModel(vehicleid) == 418) //BMX
    {
        if(GetPlayerScore(playerid) < 50)
        {
            RemovePlayerFromVehicle(playerid);
            SendClientMessage(playerid,0xAA3333AA,"You need 50 score to drive this car.");
        }
        gTickCount = tickcount();
        SetTimerEx("wincash", 60000, false, "i", playerid);
    }
    return 1;
}
forward wincash(playerid);
public wincash(playerid)
{
    if(( tickcount() - gTickCount ) > 60000 )
    GivePlayerMoney( playerid, 20 );
    return 1;
}



Now its ok ))))))))
but i get money only 1 time ,
i need to get every minute (((((((((
Reply


Messages In This Thread
Why this bugs - by truckingserver - 12.12.2012, 16:59
Re: Why this bugs - by LarzI - 12.12.2012, 17:10
AW: Why this bugs - by Kevin54321 - 12.12.2012, 17:12
Re: Why this bugs - by truckingserver - 12.12.2012, 17:17
Re: Why this bugs - by ikey07 - 12.12.2012, 17:18
Re: Why this bugs - by LarzI - 12.12.2012, 17:34
Re: Why this bugs - by truckingserver - 12.12.2012, 17:36
Re: Why this bugs - by truckingserver - 12.12.2012, 17:39
Re: Why this bugs - by LarzI - 12.12.2012, 17:40
Re: Why this bugs - by truckingserver - 12.12.2012, 17:55

Forum Jump:


Users browsing this thread: 2 Guest(s)