Posts: 600
Threads: 99
Joined: Apr 2008
Reputation:
0
Post the rest of the code, it's hard to find out where the indentation is when you can only see half the code
Posts: 26
Threads: 5
Joined: May 2010
Reputation:
0
ApplyAnimation(i,"PED", "WALK_DRUNK",4.0,0,1,0,0,0);
SetPlayerDrunkLevel(i, 10000);
PlayerDrunkTimeLeft[i] += 1;
if(PlayerDrunkTimeLeft[i] == 4)
{
PlayerDrunkTimeLeft[i] = 0;
PlayerDrunk[i] -= 1;
if(PlayerDrunk[i] < 5)
{
GameTextForPlayer(i, "~w~Drunk Effect Has~n~~p~Wore Off", 3500, 1);
SetPlayerDrunkLevel(i, 0);
}
}
}
}
}
if(PlayerInfo[i][pCarTime] > 0)
{
if(PlayerInfo[i][pCarTime] <= 0)
{
PlayerInfo[i][pCarTime] = 0;
}
else
{
PlayerInfo[i][pCarTime] -= 1;
}
}