Help with my job system. /jobstart not recognised
#8

Please don't use strcmp to process commands..

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.");
      }
   }
}
See what the console outputs then you can see were the command fails to process.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)