Jump to content

EmaTheLegend

Members
  • Posts

    9
  • Joined

  • Last visited

Details

  • Gang
    -RoCk-

EmaTheLegend's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. with rcg is very difficult create perfect loop ! With loop generator loop are perfect
  2. can anyone reup the loop generator ??? Al links are been deleted
  3. I tryed also this but don't work : local datiaccount = executeSQLSelect("Giocatori", "Soldi", "Giocatore = '" ..account.. "'") setPlayerMoney(thePlayer,datiaccount[1][1])
  4. there's a error here : local datiaccount = executeSQLSelect("Giocatori", "Soldi, Kill, Morti", "Giocatore = '" ..account.. "'") setPlayerMoney(thePlayer,datiaccount[1]['Soldi']) this fuction must set player money retrived from database
  5. yes xx3 : i'm -RoCk-EmaLegend. This script is for rock server. If you want help me i'm really happy :_ my skype is emanuele.curati.1993
  6. function avvertilogin(thePlayer) outputChatBox("** Login or register for ranking system and save money", getRootElement(), 100, 255, 0) end addEventHandler("onPlayerJoin",thePlayer,avvertilogin) function registrazionedb(thePlayer) local account = getAccountName(getPlayerAccount(thePlayer)) if(account) then executeSQLSelect("Giocatori", "Giocatore", "Giocatore = '" ..account.. "'") if (type(result) == "table" and #result == 0) or not result then outputChatBox("** One moment while your account is registered in Database ", getRootElement(), 100, 255, 0) executeSQLInsert("Giocatori","'"..account.."',0,0,0") outputChatBox("** Ok, Account succesfuly registered ! ", getRootElement(), 100, 255, 0) end outputChatBox("** Ok, Account succesfuly loaded from Database ! ", getRootElement(), 100, 255, 0) local datiaccount = executeSQLSelect("Giocatori", "Soldi, Kill, Morti", "Giocatore = '" ..account.. "'") setPlayerMoney(thePlayer,datiaccount[1]['Soldi']) textCreateTextItem("Kill :", 0.8, 0.35, "medium", 255, 255, 0) textCreateTextItem("Death :", 0.8, 0.4, "medium", 255, 255, 0) textCreateTextItem("Ratio :", 0.8, 0.4, "medium", 255, 255, 0) end end addEventHandler("onPlayerLogin",thePlayer,registrazionedb) When i start the resource mta server give me 2 warning : Bad Argument @ 'AddEventHandler' string defined function Bad Argument @ 'AddEventHandler' string defined function
  7. thanks !!! It works great !!
  8. I made a script for put player afk in basemode but he don't wark ! : function goafk(thePlayer) outputChatBox("** Thank you for using AFK Script by -RoCk-EmaLegend **", thePlayer) setElementHealth (thePlayer, 0) setPlayerTeam(thePlayer,Spectator) outputChatBox("** Your life now is 0: you are in SPECTATOR TEAM **", thePlayer) end addCommandHandler ("afk", goafk) the script must kill the player and move him in spectator team
×
×
  • Create New...