Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Recommended Posts

Posted

Salutare, am facut un "system" de crate-uri foarte simplu care ma defineste a fi incepator. Problema este ca de fiecare data cand ies si intru pe server crate-urile imi sunt resetate la 0. 

Posted (edited)

Problema ta este la save_crates, la linia 35150. Iti lipseste PlayerInfo[playerid][pID] sau ce variabila folosesti tu ca sa stachezi id jucatorului.

Adauga si la onplayerlogin sa se faca loadarea acestor date.

 

 

Edited by andy47
Posted

Probabil sunt fenomenal de prost de tot nu ma prind desi mi-ai explicat, daca am modificiat la linia 35150 jap 4 erori. Probabil nu e de mine "scripting-ul" daca se poate numi asa ce am incercat eu sa fac pana acum.

wa-rpg.pwn

Posted
save_crates(playerid) {
	new query[128];
	mysql_format(SQL, query, sizeof(query), "UPDATE `users` SET `Crates`='%d|%d' WHERE `id`='%d'", PlayerInfo[playerid][pCrates][0], PlayerInfo[playerid][pCrates][1], PlayerInfo[playerid][pSQLID]);
	mysql_tquery(SQL, query,  "", "" );
}

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.