Anmelden

Archiv verlassen und diese Seite im Standarddesign anzeigen : AddCustom Shipment & GetGlobalInt Problem



Momo5000
09.05.2009, 02:41
hey leute hab mal ne frage bzw ein problem, wie bekomme ich es hin das es geht?

ich versuche über AddCustomShipment die kosten des enities per GetGlobalInt zu bekommen, aber ich scheitere daran, es geht einfach nicht...

So ist es im moment bei mir:

local Price_PistolSingle = GetGlobalInt("cost_pistol")
local Price_PistolShipment = GetGlobalInt("cost_pistolshipment")
AddCustomShipment("Name", "mein/model/hier.mdl", "EnitieName", Price_PistolShipment, 10, true, Price_PistolSingle, false,{TEAM_GUN, TEAM_POLICEGUN})


und wen ich jetzt zb in der console rp_cost_pistol eingebe sagt er mir 400 an aber ingame zeigt er mir 0$ an... dass gleiche auch wen ich es kaufe, er zieht mir 0$ ab

habs auch schon so versucht, geht auch nicht ...


AddCustomShipment("Name", "mein/model/hier.mdl", "EnitieName", GetGlobalInt("cost_pistolshipment"), 10, true, GetGlobalInt("cost_pistol"), false,{TEAM_GUN, TEAM_POLICEGUN})


hoffe mir kann wer helfen, Momo

Scarecrow
11.05.2009, 18:26
Irgendwo aufm Server muss natürlich auch mal SetGlobalInt() stehen ;)

PS: Lass dir mal die Werte der einzelnen Variablen in der Console ausgeben, dann kannst du sehen ob die überhaupt nen Wert erhalten haben.