Blockland Forums > Modification Help
Code not working
Derroith:
--- Code: --- %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);
--- End code ---
Refuses to work, no idea why, if somebody would care to help, works with old cityrp, by the way.
## are the errors apparenty.
Ipquarx:
What part of it doesnt work?
Does it not add money?
Does it not add to the ticks properly?
Derroith:
## are the errors apparently.
Derroith:
Bump, really need some help here, people.
Port:
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.