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: takiego
1. Uzyskanie Takiego Samego Dimensionu I Interioru
Witam mam oto taki skrypt na kajdanki dla frakcji SAPD

[code]function findPlayer(plr,cel)
local target=nil


if (tonumber(cel) ~= nil) then
target=getElementByID("p"..cel)
else -- podano fragment nicku
for _,thePlayer in ipairs(getElementsByType("player")) do
if string.find(string.gsub(getPlayerName(thePlayer):lower(),"#%x%x%x%x%x%x", ""), cel:lower(), 0, true) then
if (target) then
triggerClientEvent(plr, 'onClientCaseShowing', root, 1,'Znaleziono Wi?cej U?ytkownik?w O Podobnym Nicku')
return nil
end
target=thePlayer
end
end
end
if target and getElementData(target,"p:inv") then return nil end
return target
end



kaj = {}

function zalozkaj(plr, cmd, target)
if not target then
triggerClientEvent(plr, 'onClientCaseShowingsse', root, 1,'U?yj Komendy: /Zakuj [Id U?ytkownika]')
return
end
local gracz = findPlayer(plr, target)
if getElementData(plr,"player:faction") and getElementData(plr,"player:faction") == "SAPD" then
if getElementData(plr, "kajdanki") == false then

local gracz = getPlayerName(gracz)
local gracz = getPlayerFromName(gracz)
local x2,y2,z2 = getElementPosition(gracz)
local x,y,z = getElementPosition(plr)
if (getDistanceBetweenPoints3D(x,y,z,x2,y2,z2)<20) then
toggleControl(gracz, "enter_exit", false)
toggleControl(gracz, "enter_passenger...
2. Czy będzie coś takiego działać?
Prosz? wszystko z dok?adno?ci? sprawdzi?. Dzi?kuje.

[lua]
function guiGridListAddPlayers( GridList, Column, Section, Number )
if( getElementType( GridList ) == "gui-gridlist" ) then
assert( tonumber( Column ), "Bad argument @ 'guiGridListAddPlayers' [Expected number at argument 2, got " .. tostring(Column) .. "]" )
if( Section == false or Section == true ) then
if( Number == false or Number == true ) then
for _, player in ipairs( getElementsByType('player') ) do
guiGridListClear( GridList )
local Row = guiGridListAddRow( GridList )
guiGridListSetItemText( GridList, Row, Column, getPlayerName(player), Section, Number )
end
else
error("Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 4, got " .. tostring(Number) .. "]")
end
else
error("Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 3, got " .. tostring(Section) .. "]")
end
end
end

function guiGridListGetSelectedItemText ( gridList, column...
3. Gui create window czy coś takiego ;/
Cze??. M?g?by mi kto? wyt?umaczy? jak to dzia?a, jak si? robi?
4. Co takiego zle?
GUIEditor_Window = {}
GUIEditor_Button = {}
GUIEditor_Label = {}
GUIEditor_Edit = {}

okno guiCreateWindow(0.2194,0.2422,0.1344,0.3222,"Zmie? has?o",true)
guiSetVisible oknofalse )
has guiCreateEdit(28,75,162,25,"",false,okno)
guiEditSetMasked(has,true)
GUIEditor_Label[1] = guiCreateLabel(30,41,158,22,"Oto nowe has?o :",false,okno)
guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",true)
ok guiCreateButton(59,133,105,40,"Set",false,okno)
ok guiCreateButton(59,133,105,40,"Zamknij",false,okno)


function premiumchat(playercmdpremiummessage)
       if 
premiumchat then
               
for kplayers in ipairs(getElementsByType("Premium")) do
                      
outputChatBox("<Premium>" .. table.concat({cbmessage}, " "), players2552550)
               
end
       end
end
addCommandHandler
("premiumchat"premiumchat)

W tym 2 skrypcie jak zrobic zeby tylko grupa premium widzia?a?
5. [INNE] Coś takiego przy usunietych obiektach w PAWNO :/
Jak to naprawic ? :D

Kod:

C:Documents and SettingsXxXxPulpitSerwerPKTObiekty.pwn(281) : error 010: invalid function or declaration
C:Documents and SettingsXxXxPulpitSerwerPKTObiekty.pwn(2) : error 010: invalid function or declaration
C:Documents and SettingsXxXxPulpitSerwerPKTObiekty.pwn(2 -- 3) : error 021: symbol already defined: "RemoveBuildingForPlayer"
C:Documents and SettingsXxXxPulpitSerwerPKTObiekty.pwn(2 -- 3) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.