Author Topic: Code not working  (Read 760 times)

Code: [Select]
%ticks += getWord(CityRPData.getData(%this.bl_id).valueJailData, 1);

if(%client.job $= $CityRP::jobs::name[%4]##)##
{
CityRPData.getData(%data.bl_id).valueMoney += mFloor($CityRP::prices::jailingBonus + %jailingExtraBonusOne * %ticks);
}
else if(%client.job $= $CityRP::jobs::name[%3])
{
CityRPData.getData(%data.bl_id).valueMoney += mFloor($CityRP::prices::jailingBonus + %jailingExtraBonusTwo * %ticks);
}
else if(%client.job $= $CityRP::jobs::name[%2])

CityRPData.getData(%data.bl_id).valueMoney += mFloor($CityRP::prices::jailingBonus * %ticks);
Refuses to work, no idea why, if somebody would care to help, works with old cityrp, by the way.

## are the errors apparenty.
« Last Edit: December 24, 2011, 05:35:46 PM by Derroith »

What part of it doesnt work?
Does it not add money?
Does it not add to the ticks properly?

## are the errors apparently.

Bump, really need some help here, people.

From what I'm seeing, nothing in the OP code is wrong. Please post the full code, there has to be an error above this.

Variable names can not begin with a number

Variable names can not begin with a number

Okay.. now why did I not notice this? I only see two possible reasons.
  • I was tired.
  • The OP code was edited.

Really, what.