Hallo Bredfish
ich habe folgenes problem wenn ich disconnecte werden die Waffen nicht gespeichert und geladen werden die auch nicht
Tabelle ist erstellt
CreateTabellen:
	for(new i = 1;i< 14;i++)
	{
	    new tmpstring[256];
	    format(tmpstring,sizeof tmpstring, "ALTER TABLE `users` ADD `waffenslot%d` int(11) NOT NULL DEFAULT '0'",i);
	    mysql_pquery(handle, tmpstring);
		format(tmpstring,sizeof tmpstring, "ALTER TABLE `users` ADD `ammoslot%d` int(11) NOT NULL DEFAULT '0'",i);
	    mysql_pquery(handle, tmpstring);
	}
PlayerUpdate:
		new weapon[14];
		new ammo[14];
		for(new i = 1;i< 14;i++) {
		    new tmpstring[1024];
		    GetPlayerWeaponData(playerid, i, weapon[i-1], ammo[i-1]);
		    format(tmpstring,sizeof tmpstring, "UPDATE `users` SET `waffenslot%d`='%d', `ammoslot%d`='%d' WHERE `id`='%d'",i, weapon[i], i, ammo[i], PlayerInfo[playerid][p_id]);
			mysql_pquery(handle, tmpstring);
		}
OnPlayerLogin:
			new weapon[14];
			new ammo[14];
			for(new i = 1;i< 14;i++)
			{
			    new tmpstring[128];
			    format(tmpstring,sizeof tmpstring, "waffenslot%d",i);
			    weapon[i-1] = cache_get_field_content_int(0, tmpstring, handle);
				format(tmpstring,sizeof tmpstring, "ammoslot%d",i);
				ammo[i-1] = cache_get_field_content_int(0, tmpstring, handle);
				GivePlayerWeapon(playerid,weapon[i-1],ammo[i-1]);
			}
 
		 
		
		
	