Players money stored in a table.
p_money = { }
function checkMoney(team)
local players = getPlayersInTeam(team)
for i = 1, #players do
local v = players[i]
p_money[i] = getPlayerMoney(v)
end
end
Bueno ya que esto se trata de un reto de programación empezemos con algo básico.
#include
using namespace std;
int main()
{
cout << "Nain" << endl;
return 0;
}
Mientras sea un lenguaje Turing completo y tenga las librerías suficientes, cualquier lenguaje sirve. Incluso podría haberlo hecho con Lua si se lo propusiese.
La posibilidad de emplear Lua con tal uso sería uno bastante descabellado ya que llevaría a infinitas lineas más que en Python.
Use these functions for a vertical scroll bar and if it's horizontal just change "Vertical" with "Horizontal":
guiScrollPaneGetVerticalScrollPosition
guiScrollPaneSetVerticalScrollPosition
--Example code
if guiScrollPaneGetVerticalScrollPosition(gui) >= 75 then
guiScrollPaneSetVerticalScrollPosition(gui, 75)
end
Here's a example of how you can get it done.
function drawLine()
dxDrawLine(691, 274, 685, 280, tocolor(255, 255, 255, 255), 1, false)
end
addEventHandler("onClientRender", root, drawLine)
setTimer( function() removeEventHandler("onClientRender", root, drawLine) end, 4000, 0)
Start designing, when you've got done the designing you can start with server functions. You could contact me when you've got done the designing. Good Luck!
What's your problem? Try to use "debugscript 3" in the console F8 logged as Admin to debug your script. outputDebugString it's like outputChatBox but it exports a string to the console.