Something I just cant get!
#2

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


Messages In This Thread
Something I just cant get! - by oblexive - 23.07.2012, 12:55
Re: Something I just cant get! - by Cjgogo - 23.07.2012, 13:06
Re: Something I just cant get! - by oblexive - 23.07.2012, 13:11
Re: Something I just cant get! - by Cjgogo - 23.07.2012, 13:22
Re : Something I just cant get! - by lelemaster - 23.07.2012, 13:28
Re: Re : Something I just cant get! - by Cjgogo - 23.07.2012, 13:31
Re: Something I just cant get! - by oblexive - 23.07.2012, 13:35
Re: Something I just cant get! - by Cjgogo - 23.07.2012, 13:48
Re: Something I just cant get! - by Vince - 23.07.2012, 13:51
Re: Something I just cant get! - by oblexive - 23.07.2012, 13:54

Forum Jump:


Users browsing this thread: 5 Guest(s)