Witam mam skrypt na zapis scora ale po wy??czeniu go score si? resetuje.
A Chcia?bym ?eby zapisywa?o i po restarcie / w??czeniu skryptu Pokazywa?o nadal ile mam scora.
Prosz? O Pomoc.
Dodam ?e Wzorowa?em si? na zapisi? scora by Marmat !
KOD META.xml :
[lua]
<meta>
<info name="ScoreSaver" author="Marmat000 and KineQ" type="ScoreSaver" version="1.0" />
Witam
Nie moge znalesc w tym kodzie zapisywania pozycji p owyjsciu z serwera
[code]function playerLogin (thePreviousAccount, theCurrentAccount, autoLogin)
if not (isGuestAccount (getPlayerAccount (source))) then
local accountData = getAccountData (theCurrentAccount, "funmodev2-money")
if (accountData) then
local playerMoney = getAccountData (theCurrentAccount, "funmodev2-money")
local playerSkin = getAccountData (theCurrentAccount, "funmodev2-skin")
local playerHealth = getAccountData (theCurrentAccount, "funmodev2-health")
local playerArmor = getAccountData (theCurrentAccount, "funmodev2-armor")
local R = getAccountData (theCurrentAccount, "funmodev2-R")
local G = getAccountData (theCurrentAccount, "funmodev2-G")
local B = getAccountData (theCurrentAccount, "funmodev2-B")
local playerX = getAccountData (theCurrentAccount, "funmodev2-x")
local playerY = getAccountData (theCurrentAccount, "funmodev2-y")
local playerZ = getAccountData (theCurrentAccount, "funmodev2-z")
local playerInt = getAccountData (theCurrentAccount, "funmodev2-int")
local playerDim = getAccountData (theCurrentAccount, "funmodev2-dim")
local playerWanted = getAccountData (theCurrentAccount, "funmodev2-wantedlevel")
local playerWeaponID0 = getAccountData (t...
Mam problem z 1 rzecza , problem tkwi w tym ze jak save jest na Consoli w ( Local ) to wszystko dziala dobrze , a jak dam go na Hosting serwera to nie zapisuje nic
Witam!
Planowa?em zrobi? miejsca parkingowe na blip albo marker.
My?la?em o SQL bo XML chyba nie bedzie mo?na usun?? samochodu jak zapisze rekord. Ale przejd? do rzeczy:
1. Jakich funkcji powinienem u?y? i jakich event?w
2. Co do SQL czy wystarczy mi tylko to:
*executeSQLInsert
*executeSQLDropTable
*executeSQLCreateTable
3.Planowalem to zrobi? w taki spos?b:
a) gracz wjezdza w marker wtedy rekord sie dodaje
b) gracz wyjezdza z markeru rekord sie usuwa
*Dobrze my?l? ?e to b?dzie odporne na resety servera i resource w kt?rym auto zosta?o postawione?
Witam to zn?w ja . Zn?w potrzebuje waszej pomocy chodzi o to ?e chcia?bym aby po wyjsciu i ponownym wej?ciu na serwer wczytywa?o odrazu team danego gracza.
Czy da?oby sie co? takiego zrobic za pomoc?:
getAccountData
setAccountData
Bardzo prosz? o pomoc z g?ry dzi?ki. Za dobr? odpowiedz