"A player" got sprain
When try to medical treatment run this code.
(he has over 2000 gold.)
server player: A
client player: B
\scripts\measures\ms_MedicalTreatment.lua
Code
...
(line number: 115)
--SPRAIN
if GetImpactValue("SickSim0","Sprain")==1 then
Costs = diseases_GetTreatmentCost("Sprain")
if RemoveItems("Hospital","Bandage",1,INVENTORY_STD)>0 or RemoveItems("Hospital","Bandage",1,INVENTORY_SELL)>0 then
if IsPartyMember("SickSim0")==false or SpendMoney("SickSim0",Costs,"Offering") then [B][COLOR=red]--check this line[/COLOR][/B]
[B][COLOR=seagreen]--SERVER RESPONSE this[/COLOR]
[/B] CreditMoney("Hospital",Costs,"Offering")
MsgSay("[EMAIL='','@L_MEDICUS_TREATMENT_DOC_SPRAIN']","@L_MEDICUS_TREATMENT_DOC_SPRAIN[/EMAIL]")
diseases_Sprain("SickSim0",false)
Cured = true
else
[COLOR=plum][B]--Client RESPONSE this[/B][/COLOR]
MsgSay("[EMAIL='','@L_MEDICUS_TREATMENT_DOC_NOMONEY']","@L_MEDICUS_TREATMENT_DOC_NOMONEY[/EMAIL]")
end
...
Alles anzeigen
i think ...
"SpendMoney("SickSim0",Costs,"Offering")" that code call the sync error.
:arf: