30.03.2011, 20:50
(
Последний раз редактировалось Rokzlive; 30.03.2011 в 21:22.
)
Ok, i got some problems with some stuff.
Ok, i set it up that when a player starts a mission on my server is will temporarily save the data into some variables. The BusMissionRandom stuff is fine, but like, if the load is Angle Pine and the offload is Fort Carson, it will save as Load = A and Offload = F. How do i fix that?
Heres the variables and the enum i set for it.
Secondly, how do i make a command work only if the user is driving the car they are in?
Ok, i set it up that when a player starts a mission on my server is will temporarily save the data into some variables. The BusMissionRandom stuff is fine, but like, if the load is Angle Pine and the offload is Fort Carson, it will save as Load = A and Offload = F. How do i fix that?
Heres the variables and the enum i set for it.
pawn Код:
enum missionvars
{
Route[10],
Load[100],
Offload[100]
}
new missiondata[MAX_PLAYERS][missionvars];
pawn Код:
missiondata[playerid][Route]=BusMissionRandomAngleP[rand][Route];
missiondata[playerid][Load]=BusMissionRandomAngleP[rand][Load];
missiondata[playerid][Offload]=BusMissionRandomAngleP[rand][Offload];