Jump to content

Nu se incarca crate-urile in baza de date.


Recommended Posts

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
Link to comment
Share on other sites

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,  "", "" );


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.