23.07.2012, 13:06
On your enumaration of player info,I bet pJob looks like this:
Change it to:
Now,it's a string and you format it like this:
Then read it and see if he has a job...Not sure it'll work:
pawn Код:
enum
{
pJob
}
pawn Код:
enum
{
pJob[128]
}
pawn Код:
format(PlayerInfo[playerid][pJob],128,"JOB_MECHANIC");
pawn Код:
if(!PlayerInfo[playerid][pJob][0])//he doesn't have a job
pawn Код:
if(PlayerInfo[playerid][pJob][0] != 0)//he has a job