-
Posts
1,131 -
Joined
-
Last visited
-
Days Won
2
Everything posted by MIKI785
-
Is the object streamer fixed?
-
Thanks, it works I always used localhost..
-
[2012-01-18 17:58:56] Connecting to localhost with username root password is *** to CW_svr datebase [2012-01-18 17:58:56] ERROR: Unable to connect to mysql: (2002) Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) Where's the problem? Because on localhost I run web and forum via localhost and it's working.. i tried to restart mysql server and it doesn't help.. What to do?
-
String is not element.. you can't.
-
Ok I'll try it, will it send the CZ text to players who has language set to CZ? And EN text to who has EN as language? But as I'm looking at it, it should work, i'm still beginner
-
I won't post the whole .lua file, it has over 600 lines.. I just post that function: function sendMessageAll (CZ, EN) hraci = getElementsByType("player") for _, vehicleValue in ipairs(hraci) do local hracuvJazyk = getElementData(vehicleValue, "lang") if (hracuvJazyk == "EN") then outputChatBox(EN, vehicleValue, 250, 0, 0, true) end end for _, vehicleValue in ipairs(hraci) do local hracuvJazyk = getElementData(vehicleValue, "lang") if (hracuvJazyk == "CZ") then outputChatBox(CZ, vehicleValue, 250, 0, 0, true) end end end --This shloud be used like: sendMessageAll("Ahoj", "Hello") I editet it over 10 times..
-
Yes, it should be: hraci = getElementsByType("player") for _, element in ipairs(hraci) do local hracuvJazyk = getElementData(element, "lang") if (hracuvJazyk == "CZ") then outputChatBox(CZ, hraci, 250, 0, 0, true) end end But will it work? it should send message to people which has CZ as language only...
-
Hi, I want to make a multi language messages, I have done for 1 player, who triggered the event or command: function sendMessage (CZ, EN, source) if (getElementData(source, "lang") == "EN") then outputChatBox(EN, source, 255, 0, 0, true) else outputChatBox(CZ, source, 255, 0, 0, true) end end This is working, but how to do messages for all players? I have this: for _, vehicleValue in ipairs(hraci) do --Vehicle value is because I copied this from command '''fixall'' .. local hracuvJazyk = getElementData(hraci, "lang") if (hracuvJazyk == "CZ") then outputChatBox(CZ, hraci, 250, 0, 0, true) end end But it doesn't work, and I think that this would work it will send message to all players, even to players which have different language.. How to do it? EDIT: I probably made mistake, it should be: hraci = getElementsByType("player") for _, vehicleValue in ipairs(hraci) do local hracuvJazyk = getElementData(vehicleValue, "lang") if (hracuvJazyk == "CZ") then outputChatBox(CZ, hraci, 250, 0, 0, true) end end
-
Hello, I have a problem, I can't change float to interger, how to do it? I tried to do it via string.gsub it worked, it made 6 from 6.5, but it didn't worked for 26.5, I don't know why.. is there any other way how to do it?
-
How to use external download server?? When I'm downloading map which has over 0.5Mb it just stops in the half of downloading and says timeout.. I think that external server could fix this, but how to use it? I saw somewhere on the forum that using of that is better than downloading directly from mta server.
-
To update server from 1.1 to 1.2, what I have to do? Just replace mta-server? (this I did in samp and it worked ), or do I have to replace more files?
-
I read it, that's why I posted this. How can you use #FF0000 then?
-
Can I just use setVehicleColor(vehicle, 250, 0, 0) for red?
-
Hi, I want to change color of car, but on the wiki it says that this function accept GTA's 0-126 only.. but I want to use 1.1's RGB feature. How? Is it another function? I didn't find it among vehicle releated functions on the wiki..
-
Quick answer, thx.
-
Hello, It's a little bit stupid question but how to convert HEX code (like #FF0000) To RGB format? (red- 250, 0, 0) I didn't find answer and I don't think it's too difficult to answer.. thanks.
-
Používáte zastaralý prohlížeč! It says: You are using an outdated web browser! ...
-
i tried source also.. the same. It's not full, just that command.
-
I deleted it.. But it was somethnig like: redirectPlayer (playerSource, "mshost.cz", 22005) setTimer(outputChatBox,50,1,getPlayerName (source) .. " #FF0000Has gone to our DD server!",getRootElement(),255,0,0,true) The message was always sent. For "mshost.cz" i also tried 'mshost.cz' and IP adress, lots of formats, but nothing worked.
-
Doesn't work.. I tried it, but it just send message and that's it, it won't redirect him.
-
What is the function which connect player to another server? hen he type /server2 - it will connect him to some server. I coulnd't find it on the wiki, Link please.
-
It now works well, Thanks.