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: wysyła
1. Zamiast 0.40 outputChatBox wysyła samo 0
Siema
. Mam taki kod(to jest fragment, kt?ry nas interesuje):


            local money 
math.random(0.40,1)
            
local reputation math.random(0,1)
            
triggerEvent("givePlayerMoney"plrmoney
            
setElementData(plr,'player:reputation',getElementData(plr,'player:reputation')+reputation)
            
outputChatBox ("Za skoszon? traw? otrzymujesz #ffb300"..money.."#ffffff PLN oraz #ffb300"..reputation.." #ffffffreputacji!",plr255255255true )
            
end

I mam tutaj math.random od 0.40 do 1 i outputChatBox wysy?a samo 0 bez tego po kropce. Co na to poradzi?? Pomoc= :piwo: + respect. Dzi?kuj?. :mrgreen:
2. Nie wysyła wiadomości
Witam. M?j problem polega na tym, ?e nie wysy?a wiadomo?ci do nikogo z administracji. Za pomoc stawiam :piwo: :)

Server:

function sendAdmin(nazwa1tresc1)
for 
iv in ipairs (getElementsByType("player")) do
if 
hasObjectPermissionTo(v"command.ban"truethen
outputChatBox
("=============Raport============"v255255255true)
outputChatBox("Nick Gracza: "..nazwa1v255255255true)
outputChatBox("Tre??: "..tresc1v255255255true)
end
end
end
addEvent
("pokazAdminowi"true)
addEventHandler("pokazAdminowi"getRootElement(), sendAdmin)
3. Wiadomość wysyła się tyle razy ile jest graczy!
Gdy jestem sam na czacie pokazuje si? tylko jedna wiadomo??, gdy wchodzi m?j kolega wiadomo?? si? wysy?a x2, pewnie to jest zale?ne od u?ytkownik?w.
To jest kod, nie wiem jak to naprawi?... jakie? pomys?y?
Skrypt dzia?a temat do zamkni?cia
4. [DM] Nie wysyła wiadomości do gracza
Siemka.
Ucz? sie niedawno w pawno i mam problem taki, ?e nie pokazuje mi wiadomo?ci o zabiciu gracza i zle pokazuje np. zabije kogos z mniejsza iloscia exp a mam wiecej to pokazuje mi, ze on mial niby wiecej a powinno byc odwrotnie oraz nie pokazuje informacji o zabiciu gracza. :(

Tu macie moj kod sam pisalem oprocz tego gunday

[code] if(killerid != INVALID_PLAYER_ID)
{
if(Vip[killerid])
{
GivePlayerScore(killerid, 2);
GameTextForPlayer(killerid,"~p~EXP~n~~g~+2", 1000, 1);

new Float:armour;
new Float:health;
GetPlayerHealth(killerid,health);
GetPlayerArmour(killerid,armour);
GetPlayerPing(killerid);
GetPlayerWeapon(killerid);
GivePlayerScore(killerid, 5);
new ID;
format(strx, sizeof strx, "{0489B1}Zosta?e? zabity przez %s z broni %s {0489B1}---> {F78181}%0.f {0489B1}- HP,{A4A4A4} %0.f {0489B1}- ARMOR,{ACFA58} %d {0489B1}- PING", pName[killerid], killerid, health, armour, GetPlayerPing(killerid));
SCM(ID, -1, strx);
}
else
{
GivePlayerScore(killerid, 1);
GameTextForPlayer(killerid,"~p~EXP~n~~g~+1", 1000, 1);
new Float:armour;
new Float:health;
GetPlayerHealth(killerid,health);
GetPlayerArmour(killerid,armour);
GetPlayerPing(killerid);
GetPlayerWeapon(killerid);
//new ID;
format(strx, sizeof strx, "{0489B1}Zosta?e? zabity przez %s z broni %s {0489B1}--...