You are in no train
#1

Quote:

ocmd:trainduty(playerid,params[])
{
new hurensohn = GetVehicleModel(playerid);
if(PlayerInfo[playerid][pJob]!= return SCM(playerid,COOLRED,"You are no Train Driver!");
if(TrainDuty[playerid]==1) return SCM(playerid,COOLRED,"You're already On Duty !");
if(hurensohn== 537 || hurensohn== 53
{
TrainDuty[playerid]= 1;
TrainCP[playerid]= 1;
SetPlayerCheckpoint(playerid,1446.8014,2632.0544,1 0.8203,8.0);
NearMessage(playerid,"Next Station: San Fierro");
TrainCPTime[playerid] = GetTickCount() + 60000;
return 1;
}
else return SCM(playerid,COOLRED,"You are not in any Train");
}

I don't get it, why I always get that message even if I am in a Train?
You are in no train
Reply
#2

You forgot to get the vehicle id
Код:
new hurensohn = GetVehicleModel(GetPlayerVehicleID(playerid));
Reply
#3

Quote:
Originally Posted by RoboN1X
Посмотреть сообщение
You forgot to get the vehicle id
Код:
new hurensohn = GetVehicleModel(GetPlayerVehicleID(playerid));
thx mate
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)