30.11.2012, 17:27
I try'ed to make that one minute -1 time of VIP, but -1 min from vip time decrease only when i disconnect, whats wrong here?
SetTimerEx("pViplaikasAdd",60000,true,"i");
forward pViplaikasAdd(playerid);
public pViplaikasAdd(playerid);
public OnPlayerConnect(playerid)
{
{
if(PlayerInfo[playerid][pVip])
{
PlayerInfo[playerid][pViplaikas] --;
}
}
This is all my code, so whats wrong?
SetTimerEx("pViplaikasAdd",60000,true,"i");
forward pViplaikasAdd(playerid);
public pViplaikasAdd(playerid);
public OnPlayerConnect(playerid)
{
{
if(PlayerInfo[playerid][pVip])
{
PlayerInfo[playerid][pViplaikas] --;
}
}
This is all my code, so whats wrong?