Ez a szekció lehetővé teszi a felhasználó által írt összes hozzászólás megtekintését. Vedd figyelembe, hogy csak azokba a fórumokba írt hozzászólásokat látod, amelyekhez hozzáférésed van.
Témák - ugrobolha
Oldalak: [1]
1
« Dátum: 2016. augusztus 14. - 11:54:49 »
Valaki rendbehozná illetve elmagyarázná hol hiányzik mi? CMD:motor(playerid, params[]) { new vehicleid = GetPlayerVehicleID(playerid); if (!IsEngineVehicle(vehicleid)) return SendErrorMessage(playerid, \"Nem ülsz járműben.\"); if (GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendErrorMessage(playerid, \"A sofőr ülésben kell ülnöd.\"); if (CoreVehicles[vehicleid][vehFuel] < 1) return SendErrorMessage(playerid, \"Üres a benzintank.\"); if (ReturnVehicleHealth(vehicleid) <= 300) return SendErrorMessage(playerid, \"Az jármű totálkáros ezért nem beindítható.\"); new id = Car_GetID(vehicleid); CoreVehicles[vehicleid][vehTemporary] = true; { switch (GetEngineStatus(vehicleid)) { case false: { SetEngineStatus(vehicleid, true); SendNearbyMessage(playerid, 30.0, COLOR_PURPLE, \"** %s beindítja a jármű motorát.\", ReturnName(playerid, 0)); } case true: { SetEngineStatus(vehicleid, false); SendNearbyMessage(playerid, 30.0, COLOR_PURPLE, \"** %s beindítja a jármű motorát.\", ReturnName(playerid, 0)); } } } if (Car_IsOwner(playerid, id)) { switch (GetEngineStatus(vehicleid)) { case false: { SetEngineStatus(vehicleid, true); SendNearbyMessage(playerid, 30.0, COLOR_PURPLE, \"** %s beindítja a jármű motorát.\", ReturnName(playerid, 0)); } case true: { SetEngineStatus(vehicleid, false); SendNearbyMessage(playerid, 30.0, COLOR_PURPLE, \"** %s beindítja a jármű motorát.\", ReturnName(playerid, 0)); } } } else return SendKocsiMessage(playerid,\"Nincs kulcsod ehhez a járműhöz.\"); }
2
« Dátum: 2016. augusztus 06. - 14:03:59 »
Hali MySQL-es autórendszert editelek, kibővítettem ezekkel:vhealth, vpanels, vdoors, vlights, vtires. De egyiket sem menti, mi lehet a baj? Car_Save(carid) { static query[900]; if (CarData[carid][carVehicle] != INVALID_VEHICLE_ID) { for (new i = 0; i < 14; i ++) { CarData[carid][carMods] = GetVehicleComponentInSlot(CarData[carid][carVehicle], i); } } new vpanels, vdoors, vlights, vtires; new Float:vhealth; GetVehicleDamageStatus(CarData[carid][carVehicle], vpanels, vdoors, vlights, vtires); GetVehicleHealth(CarData[carid][carVehicle], vhealth); format(query, sizeof(query), \"UPDATE `cars` SET `carModel` = \'%d\', `carOwner` = \'%d\', `carPosX` = \'%.4f\', `carPosY` = \'%.4f\', `carPosZ` = \'%.4f\', `carPosR` = \'%.4f\', `carColor1` = \'%d\', `carColor2` = \'%d\', `carPaintjob` = \'%d\', `carLocked` = \'%d\'\", CarData[carid][carModel], CarData[carid][carOwner], CarData[carid][carPos][0], CarData[carid][carPos][1], CarData[carid][carPos][2], CarData[carid][carPos][3], CarData[carid][carColor1], CarData[carid][carColor2], CarData[carid][carPaintjob], CarData[carid][carLocked] ); format(query, sizeof(query), \"%s, `carMod1` = \'%d\', `carMod2` = \'%d\', `carMod3` = \'%d\', `carMod4` = \'%d\', `carMod5` = \'%d\', `carMod6` = \'%d\', `carMod7` = \'%d\', `carMod8` = \'%d\', `carMod9` = \'%d\', `carMod10` = \'%d\', `carMod11` = \'%d\', `carMod12` = \'%d\', `carMod13` = \'%d\', `carMod14` = \'%d\'\", query, CarData[carid][carMods][0], CarData[carid][carMods][1], CarData[carid][carMods][2], CarData[carid][carMods][3], CarData[carid][carMods][4], CarData[carid][carMods][5], CarData[carid][carMods][6], CarData[carid][carMods][7], CarData[carid][carMods][8], CarData[carid][carMods][9], CarData[carid][carMods][10], CarData[carid][carMods][11], CarData[carid][carMods][12], CarData[carid][carMods][13] ); format(query, sizeof(query), \"%s, `carImpounded` = \'%d\', `carImpoundPrice` = \'%d\', `carFaction` = \'%d\', `carWeapon1` = \'%d\', `carWeapon2` = \'%d\', `carWeapon3` = \'%d\', `carWeapon4` = \'%d\', `carWeapon5` = \'%d\', `carAmmo1` = \'%d\', `carAmmo2` = \'%d\', `carAmmo3` = \'%d\', `carAmmo4` = \'%d\', `carAmmo5` = \'%d\', `CarHP` = \'%f\', `CarPanels` = \'%d\', `CarDoors` = \'%d\', `CarLights` = \'%d\', `CarTires` = \'%d\' WHERE `carID` = \'%d\'\",query, query, CarData[carid][carImpounded], CarData[carid][carImpoundPrice], CarData[carid][carFaction], CarData[carid][carWeapons][0], CarData[carid][carWeapons][1], CarData[carid][carWeapons][2], CarData[carid][carWeapons][3], CarData[carid][carWeapons][4], CarData[carid][carAmmo][0], CarData[carid][carAmmo][1], CarData[carid][carAmmo][2], CarData[carid][carAmmo][3], CarData[carid][carAmmo][4], vhealth, vpanels, vdoors, vlights, vtires, CarData[carid][carID] ); return mysql_tquery(g_iHandle, query); }
3
« Dátum: 2016. augusztus 04. - 15:24:31 »
Már frissítettem 1000x a streamert és az sscanf-ot is [15:15:27] Error: Function not registered: \'SSCANF_Init\' [15:15:27] Error: Function not registered: \'SSCANF_IsConnected\' [15:15:27] Error: Function not registered: \'SSCANF_Join\' [15:15:27] Error: Function not registered: \'SSCANF_Leave\' [15:15:27] Error: Function not registered: \'WP_Hash\' [15:15:27] Error: Function not registered: \'IsValidDynamicObject\' [15:15:27] Error: Function not registered: \'DestroyDynamicObject\' [15:15:27] Error: Function not registered: \'CreateDynamicObject\' [15:15:27] Error: Function not registered: \'GetDynamicObjectPos\' [15:15:27] Error: Function not registered: \'IsValidDynamicMapIcon\' [15:15:27] Error: Function not registered: \'DestroyDynamicMapIcon\' [15:15:27] Error: Function not registered: \'CreateDynamicMapIcon\' [15:15:27] Error: Function not registered: \'SetDynamicObjectMaterial\' [15:15:27] Error: Function not registered: \'SetDynamicObjectMaterialText\' [15:15:27] Error: Function not registered: \'IsValidDynamic3DTextLabel\' [15:15:27] Error: Function not registered: \'DestroyDynamic3DTextLabel\' [15:15:27] Error: Function not registered: \'CreateDynamic3DTextLabel\' [15:15:27] Error: Function not registered: \'IsValidDynamicPickup\' [15:15:27] Error: Function not registered: \'DestroyDynamicPickup\' [15:15:27] Error: Function not registered: \'CreateDynamicPickup\' [15:15:27] Error: Function not registered: \'MoveDynamicObject\' [15:15:27] Error: Function not registered: \'sscanf\' [15:15:27] Error: Function not registered: \'UpdateDynamic3DTextLabelText\' [15:15:27] Error: Function not registered: \'EditDynamicObject\' [15:15:27] Error: Function not registered: \'CreateDynamicPickupEx\' [15:15:27] Error: Function not registered: \'CreateDynamicObjectEx\' [15:15:27] Error: Function not registered: \'SetDynamicObjectPos\' [15:15:27] Error: Function not registered: \'Streamer_ToggleIdleUpdate\' [15:15:27] Error: Function not registered: \'SetDynamicObjectRot\' [15:15:27] Error: Function not registered: \'AttachDynamicObjectToVehicle\'
4
« Dátum: 2016. augusztus 03. - 16:19:47 »
Sziasztok Van egy /dropgun parancsom de amikor eldobom a fegyvert nem hozza létre a szerver az objectet. Kód: CMD:dropgun(playerid, params[]) { new world = GetPlayerVirtualWorld(playerid), interior = GetPlayerInterior(playerid); if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return 1; new GunID = GetPlayerWeapon(playerid); new GunAmmo = GetPlayerAmmo(playerid); if(GunID > 0 && GunAmmo != 0) { new f = MAX_OBJ+1; for(new a = 0; a < MAX_OBJ; a++) { if(dGunData[a][ObjPos][0] == 0.0) { f = a; break; } } if(f > MAX_OBJ) return SendClientMessage(playerid, COLOR_LIGHTRED, \"Megtelt az eldobható objectek száma ezért most nem tudod eldobni a fegyvered.\"); RemovePlayerWeapon(playerid, GunID); dGunData[f][ObjData][0] = GunID; dGunData[f][ObjData][1] = GunAmmo; dGunData[f][ObjInt] = interior; dGunData[f][ObjWorld] = world; GetPlayerPos(playerid, dGunData[f][ObjPos][0], dGunData[f][ObjPos][1], dGunData[f][ObjPos][2]); dGunData[f][ObjID] = CreateDynamicObject(GunObjects[GunID], dGunData[f][ObjPos][0], dGunData[f][ObjPos][1], dGunData[f][ObjPos][2]-1, 93.7, 120.0, 120.0, world, interior, -1, 200.0, 0.0); new buffer[50]; format(buffer, sizeof(buffer), \"Eldobtad a(z) %s típusú fegyvered.\", GunNames[dGunData[f][ObjData][0]]); SendClientMessage(playerid, -1, buffer); // Logging bans new dropgunstring[256]; new Hour, Minute, Second; gettime(Hour, Minute, Second); format(dropgunstring, sizeof(dropgunstring), \"[%d:%d:%d] %s eldobott egy %s típusú fegyvert.\", Hour, Minute, Second, GetName(playerid), GunNames[dGunData[f][ObjData][0]]); DropGunLog(dropgunstring); // ------------------------------------------------------- } return 1; } Amikor eldobom a fegyvert ezt írja:ű [16:20:13] [sampgdk:warning] Native function not found: GetPlayerInterior [16:20:13] [sampgdk:warning] Native function not found: GetPlayerVirtualWorld [16:20:13] [sampgdk:warning] Native function not found: GetPlayerState [16:20:13] [sampgdk:warning] Native function not found: CreatePickup [/quote]
Oldalak: [1]
|