Jump to content

Question

Posted

Problemă întâlnită (descriere): Cum pot sa salvez datele fara sa faca lag. Am bagat sa salvez cam 30 query pe secunda si face lag.
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul: -
Imagini / Video (optional): -
Aţi încercat să rezolvaţi singur?: Da

4 answers to this question

Recommended Posts

Posted (edited)

Se plangeau playeri ca isi pierd bani ...etc si am zis sa fie pentru fiecare..

Zici sa scot unde nu isi au rostul?

Edited by Vanilla
  • Administrator
Posted

Nu, zic sa faci ca datele sa se actualizez atunci cand este nevoie de asa ceva.

 

Nu sa le actualizezi pe toate odata.

Posted

Eu folosesc la OnPlayerDisconnect functia sa se salveze datele playerului respectiv ... si in caz ca inchizi gm-u si chestii pune la OnGameModeExit o variabila sa acceseze OnPlayerDisconnect pt toti playerii online

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.