• logo_cipsoft
    Nowe serwery zostały otwarte 19 Lut 2025:
    Noctalia (Open PvP) Ignitera (Open PvP) us_logo Xybra (Open PvP)

Tabulatory w tek?cie

Status
Zamknięty.

DanJ93

ElfBot Helper
Dołączył
Styczeń 18, 2009
Posty
2631
Liczba reakcji
198
Witam,
Kopiowany tekst pomija tabulatory.
Tj. kopiuje sam tekst, bez tabulator?w. Przyk?ad:
kopiujemy:
[LUA]function onTest(cid, 1, 2)
if a = b then
if c = d then
if e = f then
if getPlayerTest(cid, test) < test2 then
sendText(cid, 21 , 'Nie masz tyle mocy')
else
sendText(cid, 21, 'Masz bardzo du?o mocy!')
end
end
end
end
return true
end[/LUA]
a otrzymujemy:
[LUA] function onTest(cid, 1, 2)
if a = b then
if c = d then
if e = f then
if getPlayerTest(cid, test) < test2 then
sendText(cid, 21 , 'Nie masz tyle mocy')
else
sendText(cid, 21, 'Masz bardzo du?o mocy!')
end
end
end
end
return true
end[/LUA]
 
Odp: Tabulatory w tek?cie

To bardzo dziwne, bo u mnie kopiuje wszystko tak jak jest zapisane (u?ywam chrome).
 
Odp: Tabulatory w tek?cie

na firefox 26 ~ tez nie dziala
 
Odp: Tabulatory w tek?cie

Chrome dzia?a [najnowsze]
 
Odp: Tabulatory w tek?cie

Opera tak?e ?miga wszystko normalnie b??d?w niema z tym i problem?w widocznie s? tylko u Ciebie.
 
Odp: Tabulatory w tek?cie

[LUA]function onTest(cid, 1, 2)
if a = b then
if c = d then
if e = f then
if getPlayerTest(cid, test) < test2 then
sendText(cid, 21 , 'Nie masz tyle mocy')
else
sendText(cid, 21, 'Masz bardzo du?o mocy!')
end
end
end
end
return true
end[/LUA][XML]function onTest(cid, 1, 2)
if a = b then
if c = d then
if e = f then
if getPlayerTest(cid, test) < test2 then
sendText(cid, 21 , 'Nie masz tyle mocy')
else
sendText(cid, 21, 'Masz bardzo du?o mocy!')
end
end
end
end
return true
end[/XML][CPP]function onTest(cid, 1, 2)
if a = b then
if c = d then
if e = f then
if getPlayerTest(cid, test) < test2 then
sendText(cid, 21 , 'Nie masz tyle mocy')
else
sendText(cid, 21, 'Masz bardzo du?o mocy!')
end
end
end
end
return true
end[/CPP][SQL]function onTest(cid, 1, 2)
if a = b then
if c = d then
if e = f then
if getPlayerTest(cid, test) < test2 then
sendText(cid, 21 , 'Nie masz tyle mocy')
else
sendText(cid, 21, 'Masz bardzo du?o mocy!')
end
end
end
end
return true
end[/SQL][JS]function onTest(cid, 1, 2)
if a = b then
if c = d then
if e = f then
if getPlayerTest(cid, test) < test2 then
sendText(cid, 21 , 'Nie masz tyle mocy')
else
sendText(cid, 21, 'Masz bardzo du?o mocy!')
end
end
end
end
return true
end[/JS]
PHP:
function onTest(cid, 1, 2)
if a = b then
	if c = d then
		if e = f then
			if getPlayerTest(cid, test) < test2 then
				sendText(cid, 21 , 'Nie masz tyle mocy')
			else
				sendText(cid, 21, 'Masz bardzo du?o mocy!')
			end
		end
	end
end
return true
end

function onTest(cid, 1, 2)
if a = b then
if c = d then
if e = f then
if getPlayerTest(cid, test) < test2 then
sendText(cid, 21 , 'Nie masz tyle mocy')
else
sendText(cid, 21, 'Masz bardzo du?o mocy!')
end
end
end
end
return true
end

Wszedzie wklejam i dziala, jedynie przy cytacie na forum usuwa xD

Kopiuj?c w IE mam takie cos xD
1.function onTest(cid, 1, 2)2.if a = b then3. if c = d then4. if e = f then5. if getPlayerTest(cid, test) < test2 then6. sendText(cid, 21 , 'Nie masz tyle mocy')7. else8. sendText(cid, 21, 'Masz bardzo du?o mocy!')9. end10. end11. end12.end13.return true14.end
Kod:
1.function onTest(cid, 1, 2)2.if a = b then3.	if c = d then4.		if e = f then5.			if getPlayerTest(cid, test) < test2 then6.				sendText(cid, 21 , 'Nie masz tyle mocy')7.			else8.				sendText(cid, 21, 'Masz bardzo du?o mocy!')9.			end10.		end11.	end12.end13.return true14.end
 
Ostatnia edycja:
Odp: Tabulatory w tek?cie

firefox 43.0.1.5828
kopiowanie dzia?a normalnie, jedynie przy wrzucaniu kodu w cytat tabulatory s? usuwane, wi?c b??d le?y po stronie u?ytkownika - albo wrzucanie tekstu w cytat albo u?ywanie starej przegl?darki
 
Status
Zamknięty.
Do góry