• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Wejscie od ++18lat

Code:
local newMsg = msg
elseif(isFocused(cid) and (msg == newMsg) and isNumber(tonumber(msg))) then
Dziękuje, koniec imprezy.
 
z dedykacją dla Specjalista.

Code:
function czyJestLiczba(x)
  return x >= 0 and x or -x
end

i w npc
Code:
local TO_CO_NAPISAL = msg
if TO_CO_NAPISAL and czyJestLiczba(TO_CO_NAPISAL) then doPlayerAddItem(cid, 2160, TO_CO_NAPISAL) end

ewentualnie jak masz string z cyferkami i jesteś pewien, że tam są tylko cyferki, wbijasz:

Code:
tonumber(zmienna)

I o co tyle krzyku? Się z*FAP FAP FAP*-ujcie bo ja > wy. <proKozak> <wyskoczMiNaOtsieToDostanieszNamelocka>

@edit
Sherlok, ta koza bez kitu jest seksej o.O. || ALE MA 3 WACKI OMFG :// przez Ciebie straciłem dzieciństwo


nie wiem czemu dedykujesz to mi, skoro ja wiem jak to zrobic, pragnalem jednak tego goscia nakierowac na rozwiazanie, a nie podac gotowe rozwiazanie, gratuluje napisania funkcji, nie lepiej korzystac z juz gotowych?
 
Back
Top