Zrobi?em kolumne i tam mam score i teraz chce ?eby ten skrypt zabiera? score po stronie clinet mam
function wystaw ()
if (source == mand_Button[3]) then
local mandat = guiGetText(mand_Edit[1])
local score = guiGetText(mand_Edit[2])
local gracz = guiGridListGetItemText(mand_Grid[1], guiGridListGetSelectedItem(mand_Grid[1]), kolumna)
if (mandat ~= "") then
if (score ~= "") then
if (tonumber(mandat)) then
triggerServerEvent("wystawM", getRootElement(), mandat, score, gracz)
else
outputChatBox("To co wpisa?e? musi by? liczb?!", 255, 0, 0, true)
end
else
outputChatBox("Musisz wpisa? warto?? mandatu!", 255, 0, 0, true)
end
end
end
end
addEventHandler("onClientGUIClick", mand_Button[3], wystaw)
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach