SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 4 of 4
Search took 0.00 seconds.
Search: Posts Made By: Konstantinos
Forum: Tutorials 02/07/2016, 04:45 PM
Replies: 51
Views: 29,417
Posted By Konstantinos
Re: Saving weapon data (MySQL)

This error is given when trying to insert or update a row in the child table but there is no such value (for ID in your case) in the parent table. I also noticed that it says "references `weapondata`...
Forum: Tutorials 08/05/2016, 06:23 PM
Replies: 51
Views: 29,417
Posted By Konstantinos
Re: Saving weapon data (MySQL)

Keep "userid + weaponid" as primary and "userid + weaponslot" as unique index. Your last query is correct.
Forum: Tutorials 08/05/2016, 04:52 PM
Replies: 51
Views: 29,417
Posted By Konstantinos
Re: Saving weapon data (MySQL)

I was referring mostly on the loop (for example saving all weapons on disconnect). What PrO.GameR suggested (http://forum.sa-mp.com/showpost.php?p=3696897&postcount=2) though is way better. Having...
Forum: Tutorials 08/05/2016, 11:19 AM
Replies: 51
Views: 29,417
Posted By Konstantinos
Re: Saving weapon data (MySQL)

As long as you execute a DELETE query before, it doesn't matter.


...
Showing results 1 to 4 of 4

 

All times are GMT. The time now is 10:39 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.