Jump to content

Exa

Users
  • Content Count

    21
  • Donations

    0.00 EUR 
  • Joined

  • Last visited

About Exa

  • Rank
    Advanced

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Salut grup am si eu o problema la Clan Vehicles cand cumpar masina la server totul e bine mai fac un clan cumpar tot e bine dau restart si vand o masina si cumpar iar una si imi da eroarea asta: Error ID: 1062, Eroare: Duplicate entry '9' for key 'PRIMARY' Callback: gQuery: INSERT INTO `clan_vehicles` (ID, Model, LocationX, LocationY, LocationZ, Angle, Clan, Rank) VALUES ('9', '463', '-178.319', '1106.037', '19.742', '57.127', '2', '1') COD INSERT_CLAN_VEHICLES: https://pastebin.com/SktkhFzH Am incercat sa schimb query din asta szQuery[256] in asta gQuery[0] = EOS; s si tot nu merge
  2. Salut grup am si eu o problema mica/mare dar pentru mine e mare si nu inteleg ce are. Am un gamemode da la un prieten cu clan vehicles pornit de la burned si cand cumpar o masina la clan si dupa cand cumpar a 2-a masina se pune in locul primei masini si prima masina dispare dupa restart dispar ambele din Clan Vehicles si in locul unde a fost creata masina pentru clan se pune o masina depe server (Factiune) poftim codul: function insert_clan_vehicle(playerid, modelid, price) { new Float: Pos[3], Float: Angle, szQuery[256], string[128], carid = GetServerVehicles()+1, clanid = PlayerInfo[playerid][pClan]; GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]); GetPlayerFacingAngle(playerid, Angle); ServerVehicles[carid][vSpawned] = CreateVehicle(modelid, Pos[0], Pos[1], Pos[2], Angle, 1, 1, -1); SetVehicleNumberPlate(ServerVehicles[carid][vSpawned], "NewCar"); PutPlayerInVehicleEx(playerid, ServerVehicles[carid][vSpawned], 0); ServerVehicles[carid][vID] = carid; ServerVehicles[carid][vModel] = modelid; ServerVehicles[carid][vLocation][0] = Pos[0]; ServerVehicles[carid][vLocation][1] = Pos[1]; ServerVehicles[carid][vLocation][2] = Pos[2]; ServerVehicles[carid][vAngle] = Angle; ServerVehicles[carid][vColor][0] = 1; ServerVehicles[carid][vColor][1] = 1; ServerVehicles[carid][vClan] = clanid; mysql_format(SQL, szQuery, sizeof(szQuery), "INSERT INTO `svehicles` (vID, vModel, LocationX, LocationY, LocationZ, Angle, Clan) VALUES ('%d', '%d', '%f', '%f', '%f', '%f', '%d')", carid, modelid, Pos[0], Pos[1], Pos[2], ServerVehicles[carid][vAngle], PlayerInfo[playerid][pClan]); mysql_query(SQL, szQuery); ClanInfo[clanid][clMoney] -= price; format(szQuery, sizeof(szQuery), "UPDATE `clans` SET `Money`='%d' WHERE `ID`='%d'", clan_money(clanid), clanid); mysql_tquery(SQL, szQuery, "", ""); format(string, sizeof(string), "{%s}[CLAN] %s a cumparat vehiculul %s pentru clan (-$%s, total: $%s).", ClanInfo[clanid][clColor], GetName(playerid), aVehicleNames[modelid-400], FormatNumber(price), clan_money(clanid)); SendClanMessage(clanid, string); return 1; }
  3. Ce bug e la trade și clan?
  4. Salut grup, am o problema la Garage text, cand creez un garaj apara numele al cui este garajul dar dupa restart nu mai apara e cv gen (Owner: ) m-am uitat si la functia UpdateLabel si acolo totul e in ordine, daca stie cineva de la ce e ma poate ajuta? cod: format(gString, sizeof(gString),"Garage: {FF0000}%d\n{FFFFFF}Owner: {FF0000}%s\n\nPress {FF0000}Y {FFFFFF}to enter the garage", GarageInfo[h][gID], GarageInfo[h][gOwner]); UpdateDynamic3DTextLabelText(GarageLabel[h], 0xFFFFFF00, gString);
  5. Ce bug este la trade?
  6. Felicitari pentru munca depusa!
  7. Am rezolvat, mersi de ajutor!+1
  8. Nu e asta id-ul la bizuri e ok
×
×
  • Create New...