pvar help
#10

Quote:
Originally Posted by KinderClans
Посмотреть сообщение
Ok but as u can see from StartTruckerJob stock, i'm using the random function to select random delivery:

pawn Код:
new MisRand = random(sizeof(TruckerDeliveries));
If i use it as u said in the second stock, it will not work. Already tried.
You can try and look at this
Код:
enum pInfo
{
    StartingPoint,
    EndingPoint,
}
new PlayerInfo[MAX_PLAYERS][pInfo];
First Load:
Код:
    PlayerInfo[playerid][StartingPoint] = MisRand;
    PlayerInfo[playerid][MissionID] = MisRand;
Second Load:

Код:
forward Trucker2(playerid);
public Trucker2(playerid)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(PlayerInfo[i][pConvoy] == PlayerInfo[playerid][pConvoy])
        {
            if(IsPlayerConnected(i)) 
            {
	            DisablePlayerCheckpoint(playerid);
	            new end = PlayerInfo[playerid][StartingPoint];
                new End = PlayerInfo[playerid][StartingPoint];
             	PlayerInfo[playerid][EndingPoint] = end; 
               	TogglePlayerControllable(playerid, 1);
            	SetPlayerCheckpoint(playerid, trucker[end][ux], trucker[end][uy], trucker[end][uz], 10);
             	truck_PlayerJob[playerid] = 2;
                new workmission2[250];
                format(workmission2,sizeof(workmission2), "~w~Now deliver Head To ~r~%s ~w~To Unload The ~y~%s", trucker[End][ulpname], trucker[end][loadname]);
                PlayerTextDrawSetString(playerid, work[playerid], workmission2);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
pvar help - by KinderClans - 17.08.2018, 17:19
Re: pvar help - by DerickClark - 17.08.2018, 18:05
Re: pvar help - by KinderClans - 17.08.2018, 18:08
Re: pvar help - by DerickClark - 17.08.2018, 19:17
Re: pvar help - by KinderClans - 17.08.2018, 19:19
Re: pvar help - by DerickClark - 17.08.2018, 19:23
Re: pvar help - by KinderClans - 17.08.2018, 19:24
Re: pvar help - by DerickClark - 17.08.2018, 19:25
Re: pvar help - by KinderClans - 17.08.2018, 19:31
Re: pvar help - by DerickClark - 17.08.2018, 19:36

Forum Jump:


Users browsing this thread: 1 Guest(s)