07.06.2013, 18:31
Hey guys, I have some problems with my jobs.
I explain: when i take a job, I'm always a farmer, and when i take the medic job, it doesn't do anything.
What's wrong ?
Here is the code of taking a job.
I explain: when i take a job, I'm always a farmer, and when i take the medic job, it doesn't do anything.
What's wrong ?
Here is the code of taking a job.
pawn Код:
if(strcmp(subcmd, "prendre", true) == 0)//positionprendre
{
if(PlayerInfo[playerid][pMember] != 0)
{SendClientMessage(playerid, COLOR_FACTION, "Vous avez dйjа une faction"); return 1; }
new precision = 5;
if(PlayerToPoint(precision, playerid, 1183.4432,-1315.0598)) // medecin
{job_setJob(playerid, JOB_MEDIC);}
else if(PlayerToPoint(precision, playerid, -1061.3394,-1205.5339,129.7565)) // fermier
{job_setJob(playerid, JOB_FARMER);}
/*else if(PlayerToPoint(precision, playerid, 2326.5759,547.7589,7.7813)) // pecheur
{job_setJob(playerid, JOB_FISHER);}*/
else if(PlayerToPoint(precision, playerid, 2441.2822,-2133.9104,17.2712)) // camoinneur
{job_setJob(playerid, JOB_TRUCKER);}
else if(PlayerToPoint(precision, playerid, 2076.1377,-2013.1541,13.5469)) // eboueur
{job_setJob(playerid, JOB_GARBAGE);}
/*else if(PlayerToPoint(precision, playerid, 2783.0298,1914.5967,5.1683)) // mineur
{job_setJob(playerid, JOB_MINER);}
else if(PlayerToPoint(precision, playerid, -1518.1329,1169.3184,7.1875)) // mecano
{job_setJob(playerid, JOB_MECANIC);}*/
else if(PlayerToPoint(precision, playerid, 1772.6545,-1914.8551,13.5524)) // taxi
{job_setJob(playerid, JOB_TAXI);}
else if(PlayerToPoint(precision, playerid, 1025.7507,-1351.5011,13.7266)) // hotdog
{job_setJob(playerid, JOB_HOTDOG);}
else if(PlayerToPoint(precision, playerid, 1798.8490,-1789.2783,13.5549)) // mйcano
{job_setJob(playerid, JOB_MECANIC);}
/*else if(PlayerToPoint(precision, playerid, 1489.6671142578,-1895.1075439453,22.216812133789)) // cuisto
{job_setJob(playerid, JOB_CUISTO);}
else if(PlayerToPoint(precision, playerid, 1597.4645,1448.1750,10.8281)) // pilote
{job_setJob(playerid, JOB_PILOT);}
else if(PlayerToPoint(precision, playerid, -1431.4244,-1468.2551,101.6967)) // bucheron
{job_setJob(playerid, JOB_WOOD);}
else if(PlayerToPoint(precision, playerid, 2775.3965,1945.8955,10.9548)) // pyrotechnicien
{job_setJob(playerid, JOB_PYRO);}*/
else if(PlayerToPoint(precision, playerid, 2101.4900,-1812.6345,13.5547)) // Pizzaboy
{job_setJob(playerid, JOB_PIZZA);}
else if(PlayerToPoint(precision, playerid, 1590.1724,-1274.7303,17.5058)) // facteur
{job_setJob(playerid, JOB_FACTOR);}
return 1;
}