Stuff takes affect only after relog
#1

The problem is the lots of stuff start to work only after relog.For Example, when you get a job by this function:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,3,590.677429,1230.618286,11.718750))
    {
        if(PlayerInfo[playerid][Job]==0)
        {
            SendClientMessage(playerid,0xFF8000FF,"Isidarbinote sunkvezimiu vairuotoju");
            PlayerInfo[playerid][Trucker]=1;
            PlayerInfo[playerid][Job]=1;
            SaveStats(playerid);
        }
    }
No errors no problems. But you can't do anything as a trucker,until you logout and login again...Anyone might know why?
Reply
#2

pawn Код:
public OnPlayerDisconnect(playerid)
{
    PlayerInfo[playerid][Trucker]=0;
    PlayerInfo[playerid][Job]=0;
    return 1;
}
Reply
#3

No,the i don't want to reset it when he exits. The problem is that it doesn't work UNTIL he exits and comes back again. I want it to work the second that he took the job
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)