Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: wrong_amount
1. wrong_amount sms
Przerabiam sobie w?a?nie panel zakupu sms premium z microsms na serverproject nie wychodzi

Takie co? wyskakuje na czacie
[lua]
Podany kod jest nie prawid?owy.({"status":"fail","error":"wrong_amount"})
[/lua]

strona clienta
[lua]
ddEventHandler("onClientClick", root, function(b, s)
if b ~= "state" and s ~= "down" then return end
if mysz((screenW * 0.3836) + 1, (screenH * 0.6888) - 1, (screenW * 0.1186) + 1, (screenH * 0.0573) - 1) and pp == true then
if guiGetText(editbox) == "" then return end
local amount = 0
local wybrane = guiComboBoxGetSelected(komboboks)
if not wybrane then return end
local tekst = guiComboBoxGetItemText(komboboks,wybrane)
if tekst == "30 dni + 5 dni gratis" then
amount = 35
elseif tekst == "60 dni + 10 dni gratis" then
amount = 70
else
amount = 0
end
if amount == 0 then
outputChatBox("Nie wybra?e? ilo?ci dni, wybierz i kliknij ponownie.")
return
end
triggerServerEvent("skPremium", localPlayer, guiGetText(editbox), amount)
elseif mysz((screenW * 0.5454) + 1, (screenH * 0.6888) - 1, (screenW * 0.1179) + 1, (screenH * 0.0573) - 1) and pp == true then
pp = false
guiSetVisible(komboboks,false)
guiSetVisible(editbox,false)
showCursor(false)
setElementFrozen(localPlayer,false)
removeEventHandler("onClientPreRender", root, guiPremka)
end
...