07.02.2013, 06:43
Please don't use strcmp to process commands..
Anyways... : do some prints throughout the command
See what the console outputs then you can see were the command fails to process.
Anyways... : do some prints throughout the command
pawn Код:
if (strcmp("/jobstart",cmdtext,true,9)==0)
{
new JobvModel;
printf("1");
JobvModel = GetVehicleModel(GetPlayerVehicleID(playerid));
if (job[playerid] == 1){
printf("2");
if (JobvModel == 403 || JobvModel == 514){
printf("3");
truckerCP[playerid] = 1;
SetPlayerCheckpoint(playerid, 2114.2888,-2092.0613,13.5544, 4.0);
SendClientMessage(playerid, 0x33AA33AA, "You have succesfully started your trucker job. Head to the checkpoint to pick up your trailer.");
}
}
}