Hallo Armawelt,
ich habe ich ein großes Problem mit dem Tut. Fahrzeughandel.
Was funktioniert:
- Ich kann im Dialog mein Auto auswählen was ich verkaufen möchte
- man kann den Käufer auswählen
- man kann den Fahrzeugpreis eingeben
- und man kann das Fahrzeug an einen Käufer verkaufen
- Der Käufer hat dann auch denn Schlüssel in seinem Schlüsselbund.
soweit alles gut...
aber jetzt kommen die Probleme:
- Der Käufer müchte sein gekauftes Auto in die Garage einparken (was auch geht, wenn man etwas in der CfgRemoteExec rumspielt) aber es erscheint nicht in seiner Garage... Das Fahrzeug ist auf einmal weg weder Käufer noch Verkäufer haben es
- Nach dem man den Server verlässt und wieder raufkommt hat der VERKÄUFER wieder das Fahrzeug in seiner Garage und NICHT DER KÄUFER.
Ich denke es muss was mit dem SQL update liegen... so das er nicht genau weiß wem er das Fahrzeug zuteilen soll.
Darauf habe ich mir mal die RPT angeschut wo ich folgenden Fehler gefunden habe:
Code: RPT
2018/05/01, 2:02:12 Error in expression <ehKey.sqf [DB_fnc_changeVehKey]"
params [
["_plate","",[""]],
["_uidAchet>
2018/05/01, 2:02:12 Error position: <params [
["_plate","",[""]],
["_uidAchet>
2018/05/01, 2:02:12 Error Params: Type Number, expected String
2018/05/01, 2:02:12 File \life_server\Functions\MySQL\fn_changeVehKey.sqf [DB_fnc_changeVehKey], line 7
danach habe ich mal in der fn_changeVehKey.sqf reingeschaut, die wie folgt aussieht:
Code: fn_changeVehKey.sqf
params [ ["_plate","",[""]], ["_uidAcheteur","",[""]]
];
_query = format ["UPDATE vehicles SET pid='%2' WHERE plate='%1'", _plate,_uidAcheteur];
[_query,1] call DB_fnc_asyncCall;
Ich gebe euch auch mal meine CfgRemoteExec.hpp
Code: CfgRemoteExec.hpp
#define F(NAME,TARGET) class NAME { \
allowedTargets = TARGET; \
};
#define ANYONE 0
#define CLIENT 1
#define SERVER 2
#define HC HC_Life
class CfgRemoteExec {
class Functions {
mode = 1;
jip = 0;
/* Client only functions */
F(life_fnc_AAN,CLIENT)
F(life_fnc_addVehicle2Chain,CLIENT)
F(life_fnc_adminID,CLIENT)
F(life_fnc_adminInfo,CLIENT)
F(life_fnc_bountyReceive,CLIENT)
F(life_fnc_copLights,CLIENT)
F(life_fnc_copSearch,CLIENT)
F(life_fnc_copSiren,CLIENT)
F(life_fnc_freezePlayer,CLIENT)
F(life_fnc_gangCreated,CLIENT)
F(life_fnc_gangDisbanded,CLIENT)
F(life_fnc_gangInvite,CLIENT)
F(life_fnc_garageRefund,CLIENT)
F(life_fnc_giveDiff,CLIENT)
F(life_fnc_hideObj,CLIENT)
F(life_fnc_impoundMenu,CLIENT)
F(life_fnc_jail,CLIENT)
F(life_fnc_jailMe,CLIENT)
F(life_fnc_knockedOut,CLIENT)
F(life_fnc_licenseCheck,CLIENT)
F(life_fnc_licensesRead,CLIENT)
F(life_fnc_lightHouse,CLIENT)
F(life_fnc_mediclights,CLIENT)
F(life_fnc_medicRequest,CLIENT)
F(life_fnc_medicSiren,CLIENT)
F(life_fnc_moveIn,CLIENT)
F(life_fnc_pickupItem,CLIENT)
F(life_fnc_pickupMoney,CLIENT)
F(life_fnc_receiveItem,CLIENT)
F(life_fnc_receiveMoney,CLIENT)
F(life_fnc_removeLicenses,CLIENT)
F(life_fnc_restrain,CLIENT)
F(life_fnc_revived,CLIENT)
F(life_fnc_robPerson,CLIENT)
F(life_fnc_robReceive,CLIENT)
F(life_fnc_searchClient,CLIENT)
F(life_fnc_seizeClient,CLIENT)
F(life_fnc_soundDevice,CLIENT)
F(life_fnc_spikeStripEffect,CLIENT)
F(life_fnc_tazeSound,CLIENT)
F(life_fnc_ticketPaid,CLIENT)
F(life_fnc_ticketPrompt,CLIENT)
F(life_fnc_vehicleAnimate,CLIENT)
F(life_fnc_wantedList,CLIENT)
F(life_fnc_wireTransfer,CLIENT)
F(SOCK_fnc_dataQuery,CLIENT)
F(SOCK_fnc_insertPlayerInfo,CLIENT)
F(SOCK_fnc_requestReceived,CLIENT)
F(SOCK_fnc_updateRequest,CLIENT)
F(TON_fnc_clientGangKick,CLIENT)
F(TON_fnc_clientGangLeader,CLIENT)
F(TON_fnc_clientGangLeft,CLIENT)
F(TON_fnc_clientGetKey,CLIENT)
F(TON_fnc_clientMessage,CLIENT)
F(TON_fnc_player_query,CLIENT)
F(life_fnc_receivedveh,CLIENT)
/* Server only functions */
F(BIS_fnc_execVM,SERVER)
F(DB_fnc_insertRequest,SERVER)
F(DB_fnc_queryRequest,SERVER)
F(DB_fnc_updatePartial,SERVER)
F(DB_fnc_updateRequest,SERVER)
F(DB_fnc_changevehkey,SERVER)
F(life_fnc_returnvente,SERVER)
F(life_fnc_jailSys,SERVER)
F(life_fnc_wantedAdd,SERVER)
F(life_fnc_wantedBounty,SERVER)
F(life_fnc_wantedCrimes,SERVER)
F(life_fnc_wantedFetch,SERVER)
F(life_fnc_wantedProfUpdate,SERVER)
F(life_fnc_wantedRemove,SERVER)
F(SPY_fnc_cookieJar,SERVER)
F(SPY_fnc_observe,SERVER)
F(TON_fnc_addContainer,SERVER)
F(TON_fnc_addHouse,SERVER)
F(TON_fnc_chopShopSell,SERVER)
F(TON_fnc_cleanupRequest,SERVER)
F(TON_fnc_deleteDBContainer,SERVER)
F(TON_fnc_getID,SERVER)
F(TON_fnc_getVehicles,SERVER)
F(TON_fnc_insertGang,SERVER)
F(TON_fnc_keyManagement,SERVER)
F(TON_fnc_manageSC,SERVER)
F(TON_fnc_pickupAction,SERVER)
F(TON_fnc_removeGang,SERVER)
F(TON_fnc_sellHouse,SERVER)
F(TON_fnc_sellHouseContainer,SERVER)
F(TON_fnc_setObjVar,SERVER)
F(TON_fnc_spawnVehicle,SERVER)
F(TON_fnc_spikeStrip,SERVER)
F(TON_fnc_updateGang,SERVER)
F(TON_fnc_updateHouseContainers,SERVER)
F(TON_fnc_updateHouseTrunk,SERVER)
F(TON_fnc_vehicleCreate,SERVER)
F(TON_fnc_vehicleDelete,SERVER)
F(TON_fnc_vehicleStore,SERVER)
F(TON_fnc_vehicleUpdate,SERVER)
F(TON_fnc_handleBlastingCharge,SERVER)
F(TON_fnc_houseGarage,SERVER)
/* HeadlessClient only functions */
F(HC_fnc_addContainer,HC)
F(HC_fnc_addHouse,HC)
F(HC_fnc_chopShopSell,HC)
F(HC_fnc_deleteDBContainer,HC)
F(HC_fnc_getVehicles,HC)
F(HC_fnc_houseGarage,HC)
F(HC_fnc_insertGang,HC)
F(HC_fnc_insertRequest,HC)
F(HC_fnc_insertVehicle,HC)
F(HC_fnc_jailSys,HC)
F(HC_fnc_keyManagement,HC)
F(HC_fnc_queryRequest,HC)
F(HC_fnc_removeGang,HC)
F(HC_fnc_sellHouse,HC)
F(HC_fnc_sellHouseContainer,HC)
F(HC_fnc_spawnVehicle,HC)
F(HC_fnc_spikeStrip,HC)
F(HC_fnc_updateGang,HC)
F(HC_fnc_updateHouseContainers,HC)
F(HC_fnc_updateHouseTrunk,HC)
F(HC_fnc_updatePartial,HC)
F(HC_fnc_updateRequest,HC)
F(HC_fnc_vehicleCreate,HC)
F(HC_fnc_vehicleDelete,HC)
F(HC_fnc_vehicleStore,HC)
F(HC_fnc_vehicleUpdate,HC)
F(HC_fnc_wantedAdd,HC)
F(HC_fnc_wantedBounty,HC)
F(HC_fnc_wantedCrimes,HC)
F(HC_fnc_wantedFetch,HC)
F(HC_fnc_wantedProfUpdate,HC)
F(HC_fnc_wantedRemove,HC)
/* Functions for everyone */
F(BIS_fnc_effectKilledAirDestruction,ANYONE)
F(BIS_fnc_effectKilledSecondaries,ANYONE)
F(life_fnc_animSync,ANYONE)
F(life_fnc_broadcast,ANYONE)
F(life_fnc_colorVehicle,ANYONE)
F(life_fnc_corpse,ANYONE)
F(life_fnc_demoChargeTimer,ANYONE)
F(life_fnc_flashbang,ANYONE)
F(life_fnc_jumpFnc,ANYONE)
F(life_fnc_lockVehicle,ANYONE)
F(life_fnc_pulloutVeh,ANYONE)
F(life_fnc_say3D,ANYONE)
F(life_fnc_setFuel,ANYONE)
F(life_fnc_simDisable,ANYONE)
F(SPY_fnc_notifyAdmins,ANYONE)
};
class Commands {
mode = 1;
jip = 0;
F(addHandgunItem,ANYONE)
F(addMagazine,ANYONE)
F(addPrimaryWeaponItem,ANYONE)
F(addWeapon,ANYONE)
F(setFuel,ANYONE)
};
};
Alles anzeigen
Wäre schön wenn Ihr eine Idee habt dazu
Liebe Grüße
Altis Gameland