06.02.2019, 22:10
I tryied to insert in my GM a script for saving and loading the weapons for any players in a server rp, in MySQL.
That Iwan't to make is: when a player disconnect from the server and the player has any type of weapons, the script going to save weapons automatically, and when the same player enter again, the gm in automatic give him the saved weapons.
I triyed to write, but I failed, the result is... if a player disconnect with a weapons, the script save that in another column(i called the colum for the players "players" and for the weapons "armi". is Im Italian) called "armi", but if player turn on the servevr, the script doesn't give him weapons, and if he have the same weapon saved, didn't update the ammo.
this is the script that I make to try
file link - how can I fix that?
That Iwan't to make is: when a player disconnect from the server and the player has any type of weapons, the script going to save weapons automatically, and when the same player enter again, the gm in automatic give him the saved weapons.
I triyed to write, but I failed, the result is... if a player disconnect with a weapons, the script save that in another column(i called the colum for the players "players" and for the weapons "armi". is Im Italian) called "armi", but if player turn on the servevr, the script doesn't give him weapons, and if he have the same weapon saved, didn't update the ammo.
this is the script that I make to try
file link - how can I fix that?