Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. No se de que estas hablando, el nombre de la gang es el argumento del evento.
  2. Watch this video: And here are the tables you must import: http://www.mediafire.com/?zzkb4nusfvvft66
  3. Do you know how to import a table at least?
  4. Shaders are client side, why would the VPS make any difference?
  5. You must create a table on your MySQL database and then add each column, because if I'm right, the script doesn't add the table on it's own.
  6. It is possible, you can setup an external http server.
  7. dxDrawColorText ya no es necesaria, dxDrawText ahora soporta colores HEX, y es mas eficiente.
  8. Yo te diria por empezar por crear un script para que cada jugador pueda jugar en el mapa que quiera, al mismo tiempo. Igual, para hacer esto vas a necesitar crear tu propio game mode de race.
  9. That's because the account doesn't exist, which is because you are using the wrong argument here: local new = dbQuery ( dbc, "SELECT * FROM Accounts WHERE name=?", accnt ) "accnt" is not the same as "account".
  10. Show me the new code. Edit: This is wrong: local password = result[1] you aren't defining which column name you whish to get the data from, use this: local password = result [ 1 ] [ "password" ]
  11. I said result [ 1 ], not result [ 2 ], as it only found one row for sure.
  12. Use this to get the password column data: local password = result [ 1 ] [ "passwordColumnNameHere" ]
  13. Podrias crear un script para quitar los scripts que no se usan.
  14. I've tested it before posting it and it worked fine.
  15. That function is "setPedWalkingStyle", the one that doesn't work is the one to GET the walking style form a ped/player.
  16. I'm not sure, but I think the MTA will update all the passwords to sha256 when you update your server version.
  17. Just compared both scripts, and they are the same. Topic locked.
  18. Castillo

    ?

    controls = { { 'lst', id='skinlist', width=230, height=290, columns={ {text='Skin', attr='name'} }, rows={xml='skins.xml', attrs={'id', 'name'}}, onitemclick=showSkinID, onitemdoubleclick=applySkin }, {'txt', id='skinid', text='', width=50}, {'btn', id='set', onclick=applySkin}, {'btn', id='close', closeswindow=true} }, I wil take this ? and this is my code grid list function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(1052, 184, 314, 510, "..:: [ Selection Skin's ] ::..", false) guiWindowSetSizable(wnd, false) centerWindow(wnd) guiSetAlpha(wnd, 1.00) guiWindowSetMovable( wnd , false ) gridlist = guiCreateGridList(21, 29, 283, 426, false, wnd) guiGridListAddColumn(gridlist, "Skin", 0.9) button = guiCreateButton(85, 465, 156, 35, "Spawn !", false, wnd) guiSetProperty(button, "NormalTextColour", "FFAAAAAA") end )function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(1052, 184, 314, 510, "..:: [ Selection Skin's ] ::..", false) guiWindowSetSizable(wnd, false) centerWindow(wnd) guiSetAlpha(wnd, 1.00) guiWindowSetMovable( wnd , false ) gridlist = guiCreateGridList(21, 29, 283, 426, false, wnd) guiGridListAddColumn(gridlist, "Skin", 0.9) button = guiCreateButton(85, 465, 156, 35, "Spawn !", false, wnd) guiSetProperty(button, "NormalTextColour", "FFAAAAAA") end ) You got me wrong, I told you to use the XML file only, not the freeroam script. Use the XML functions to load the content of the XML into a lua table, then you can create a function which will get the skin name from the model.
  19. If you stop freeroam, it'll be stopped for everyone, I doubt that's what you want to achieve.
  20. Seems like this has gone waaaaay off topic, in the worst way possible. Topic locked.
  21. Why do you need to add it there?
  22. Bajate un programa llamado "xampp" que contiene "phpMyAdmin" en el cual podes manejar todo sin problemas.
  23. addEvent ( "onPlayerJoinGang", true ) addEventHandler ( "onPlayerJoinGang", root, function ( gangName ) outputChatBox ( "Te uniste a la gang: ".. gangName .."!", source ) end )
×
×
  • Create New...