Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Format(buffer, sizeof(buffer), "SELECT p2000, usps, tec9, glock18, p250, deagle, fiveseven, dualberettas, cz75, mac10, mp9, ppbizon, ump45, mp7, p90, sawedoff, nova, mag7, xm1014, galilar, famas, ak47, m4a4, aug, sg553, m249, negev, ssg08, awp, scar20, g3sg1, m4a1s, munitions, munitionsincendiaire, munitionsperforante, munitionscaoutchouc, munitionsexplosive, hegrenade, gss, smokegrenade, incgrenade, molotov, decoygrenade, c4, kevlarleger, kevlarlourd, kevlarmilitaire, troussesoin, defibrillateur, antiinfectieux, joint, shit, meth, heroine, cocaine, tgv, sirop, remede, ticketgratter, rapido, loto, imprimante, crackdigicode, ubercharge, couteauparalisant, ceintureexplosive, sativex, dragonne, ceinture, carteprepayee, bidonfuel, actionhopital, actionammunation, actionimmobilier, actionnightclub, actioncybercafe, actionbankofamerica, actioncontrebande, actionburaliste, actionroyalindustries, hasbayonet, hasgut, hasflip, hasm9bayonet, haskarambit, hashuntman, hasbutterfly, encre, lampetorche, bombegraffiti, countgraffiti, propscanette, propschaise, propscanape, propsbiblio, propsbarriere, propsplot, propsarmoire, propsdistributeur, propsplante, propspoutre, propscloture, propsglobe, modelgraffiti1, modelgraffiti2, modelgraffiti3, modelgraffiti4, modelgraffiti5, modelgraffiti6, modelgraffiti7, modelgraffiti8, modelgraffiti9, modelgraffiti10, medishot, grenadetactique, skin1, skin2, skin3, skin4, skin5, skin6, skin7, skin8, skin9, skin10, skin11, skin12, skin13, ameliorationimp1, ameliorationimp2, blindage, rechargeimprimante, bigmac, royalbacon, royalcheese, royalmcchicken, nuggets, soda, frites, sundae, mcflurry, mines FROM item WHERE steamid = '%s';", steamID[client]);
- Handle query_items = SQL_Query(dBase, buffer);
- if (query_items)
- {
- if (SQL_FetchRow(query_items))
- {
- g_Item[client][P2000] += SQL_FetchInt(query_items, 0); // P2000 .
- g_Item[client][USPS] += SQL_FetchInt(query_items, 1); // USPS .
- g_Item[client][TEC9] += SQL_FetchInt(query_items, 2); // TEC9 .
- g_Item[client][GLOCK18] += SQL_FetchInt(query_items, 3); // GLOCK18 .
- g_Item[client][P250] += SQL_FetchInt(query_items, 4); // P250 .
- g_Item[client][DEAGLE] += SQL_FetchInt(query_items, 5); // DEAGLE .
- g_Item[client][FIVESEVEN] += SQL_FetchInt(query_items, 6); // FIVESEVEN
- g_Item[client][DUALBERETTAS] += SQL_FetchInt(query_items, 7); // DUALBERETTAS
- g_Item[client][CZ79] += SQL_FetchInt(query_items, 8); // cz79
- g_Item[client][MAC10] += SQL_FetchInt(query_items, 9); // mac10
- g_Item[client][MP9] += SQL_FetchInt(query_items, 10); // mp9
- g_Item[client][PPBIZON] += SQL_FetchInt(query_items, 11); // ppbizon
- g_Item[client][UMP45] += SQL_FetchInt(query_items, 12); // ump45
- g_Item[client][MP7] += SQL_FetchInt(query_items, 13); // mp7
- g_Item[client][P90] += SQL_FetchInt(query_items, 14); // p90
- g_Item[client][SAWEDOF] += SQL_FetchInt(query_items, 15); // sawedof
- g_Item[client][NOVA] += SQL_FetchInt(query_items, 16); // nova
- g_Item[client][MAG7] += SQL_FetchInt(query_items, 17); // mag7
- g_Item[client][XM1014] += SQL_FetchInt(query_items, 18); // xm1014
- g_Item[client][GALILAR] += SQL_FetchInt(query_items, 19); // galilar
- g_Item[client][FAMAS] += SQL_FetchInt(query_items, 20); // famas
- g_Item[client][AK47] += SQL_FetchInt(query_items, 21); // ak47
- g_Item[client][M4A4] += SQL_FetchInt(query_items, 22); // m4a4
- g_Item[client][AUG] += SQL_FetchInt(query_items, 23); // aug
- g_Item[client][SG553] += SQL_FetchInt(query_items, 24); // sg553
- g_Item[client][M249] += SQL_FetchInt(query_items, 25); // m249
- g_Item[client][NEGEV] += SQL_FetchInt(query_items, 26); // negev
- g_Item[client][SSG08] += SQL_FetchInt(query_items, 27); // ssg08
- g_Item[client][AWP] += SQL_FetchInt(query_items, 28); // awp
- g_Item[client][SCAR20] += SQL_FetchInt(query_items, 29); // scar20
- g_Item[client][G3SG1] += SQL_FetchInt(query_items, 30); // g3sg1
- g_Item[client][M4A1S] += SQL_FetchInt(query_items, 31); // m4a1s
- g_Item[client][MUNITION] += SQL_FetchInt(query_items, 32); // munitions
- g_Item[client][MUNITION_INCENDIAIRE] += SQL_FetchInt(query_items, 33); // munitions incendiaires
- g_Item[client][MUNITION_PERFORANTE] += SQL_FetchInt(query_items, 34); // munitions perforante
- g_Item[client][MUNITION_CAOUTCHOUC] += SQL_FetchInt(query_items, 35); // munitions caoutchouc
- g_Item[client][MUNITION_EXPLOSIVE] += SQL_FetchInt(query_items, 36); // munitions explosives
- g_Item[client][GRENADE_HE] += SQL_FetchInt(query_items, 37); // grenade fragmentation
- g_Item[client][GRENADE_GSS] += SQL_FetchInt(query_items, 38); // gss - flash
- g_Item[client][GRENADE_SMOKE] += SQL_FetchInt(query_items, 39); // smoke - fumigene
- g_Item[client][GRENADE_INCENDIAIRE] += SQL_FetchInt(query_items, 40); // grenade incendiaire
- g_Item[client][MOLOTOV] += SQL_FetchInt(query_items, 41); // molotov
- g_Item[client][GRENADE_DECOY] += SQL_FetchInt(query_items, 42); // decoygrenade
- g_Item[client][C4] += SQL_FetchInt(query_items, 43); // C4
- g_Item[client][KEVLAR_LEGER] += SQL_FetchInt(query_items, 44); // kevlar leger
- g_Item[client][KEVLAR_LOURD] += SQL_FetchInt(query_items, 45); // kevlar lourd
- g_Item[client][KEVLAR_MILITAIRE] += SQL_FetchInt(query_items, 46); // kevlar militaire
- g_Item[client][TROUSSE_SOIN] += SQL_FetchInt(query_items, 47); // trousse de soin
- g_Item[client][DEFIBRILLATEUR] += SQL_FetchInt(query_items, 48); // defibrillateur
- g_Item[client][ANTI_INFECTIEUX] += SQL_FetchInt(query_items, 49); // anti infectieux
- g_Item[client][JOINT] += SQL_FetchInt(query_items, 50); // joint
- g_Item[client][SHIT] += SQL_FetchInt(query_items, 51); // shit
- g_Item[client][METH] += SQL_FetchInt(query_items, 52); // meth
- g_Item[client][HEROINE] += SQL_FetchInt(query_items, 53); // heroine
- g_Item[client][COCAINE] += SQL_FetchInt(query_items, 54); // cocaine
- g_Item[client][TGV] += SQL_FetchInt(query_items, 55); // tgv
- g_Item[client][SIROP] += SQL_FetchInt(query_items, 56); // sirop
- g_Item[client][REMEDE] += SQL_FetchInt(query_items, 57); // remede -
- g_Item[client][TICKET] += SQL_FetchInt(query_items, 58); // ticket à gratter -
- g_Item[client][RAPIDO] += SQL_FetchInt(query_items, 59); // rapido -
- g_Item[client][LOTO] += SQL_FetchInt(query_items, 60); // loto -
- g_Item[client][IMPRIMANTE] += SQL_FetchInt(query_items, 61); // imprimantes1-
- g_Item[client][DIGICODE] += SQL_FetchInt(query_items, 62); // crack digicodes-
- g_Item[client][UBERCHARGE] += SQL_FetchInt(query_items, 63); // ubercharge -
- g_Item[client][AIGUISEUR] += SQL_FetchInt(query_items, 64); // couteau -
- g_Item[client][CEINTURE] += SQL_FetchInt(query_items, 65); // ceinture explosive -
- g_Item[client][SATIVEX] += SQL_FetchInt(query_items, 66); // sativex -
- g_Item[client][DRAGONNE] += SQL_FetchInt(query_items, 67); // dragonne-
- g_Item[client][CEINTURE_ARME] += SQL_FetchInt(query_items, 68); // ceinture-
- g_Item[client][CREDIT] += SQL_FetchInt(query_items, 69); // carte prepayee -
- g_Item[client][FUEL] += SQL_FetchInt(query_items, 70); // bidon fuel -
- actionMetier[client][0] = SQL_FetchInt(query_items, 71); // action hopital
- actionMetier[client][1] = SQL_FetchInt(query_items, 72); // action armu
- actionMetier[client][2] = SQL_FetchInt(query_items, 73); // action immobilier
- actionMetier[client][3] = SQL_FetchInt(query_items, 74); // action nightclub
- actionMetier[client][4] = SQL_FetchInt(query_items, 75); // action cybercafe
- actionMetier[client][5] = SQL_FetchInt(query_items, 76); // action banque
- actionMetier[client][6] = SQL_FetchInt(query_items, 77); // action contrebande
- actionMetier[client][7] = SQL_FetchInt(query_items, 78); // action buraliste
- actionMetier[client][8] = SQL_FetchInt(query_items, 79); // action royal industries
- if (SQL_FetchInt(query_items, 80) == 1) // bayonet
- hasKnife[client][0] = true;
- else
- hasKnife[client][0] = false;
- if (SQL_FetchInt(query_items, 81) == 1) // hasgut
- hasKnife[client][1] = true;
- else
- hasKnife[client][1] = false;
- if (SQL_FetchInt(query_items, 82) == 1) // flip
- hasKnife[client][2] = true;
- else
- hasKnife[client][2] = false;
- if (SQL_FetchInt(query_items, 83) == 1) // m9 bayonet
- hasKnife[client][3] = true;
- else
- hasKnife[client][3] = false;
- if (SQL_FetchInt(query_items, 84) == 1) // Karambit
- hasKnife[client][4] = true;
- else
- hasKnife[client][4] = false;
- if (SQL_FetchInt(query_items, 85) == 1) // Huntman
- hasKnife[client][5] = true;
- else
- hasKnife[client][5] = false;
- if (SQL_FetchInt(query_items, 86) == 1) // butterfly
- hasKnife[client][6] = true;
- else
- hasKnife[client][6] = false;
- g_Item[client][ENCRE] += SQL_FetchInt(query_items, 87); // encre
- g_Item[client][LAMPETORCHE] += SQL_FetchInt(query_items, 88); // lampetorche
- g_Item[client][BOMBEGRAPH] += SQL_FetchInt(query_items, 89); // bombone graphiti
- countGraffiti[client] = SQL_FetchInt(query_items, 90); // count graffiti
- g_Item[client][PROP_CANETTE] += SQL_FetchInt(query_items, 91); // prop canette
- g_Item[client][PROP_CHAISE] += SQL_FetchInt(query_items, 92); // prop chaise
- g_Item[client][PROP_CANAPE] += SQL_FetchInt(query_items, 93); // prop canapé
- g_Item[client][PROP_BIBLIO] += SQL_FetchInt(query_items, 94); // prop bibliotheque
- g_Item[client][PROP_BARRIERE] += SQL_FetchInt(query_items, 95); // prop barriere
- g_Item[client][PROP_PLOT] += SQL_FetchInt(query_items, 96); // prop plot
- g_Item[client][PROP_ARMOIRE] += SQL_FetchInt(query_items, 97); // prop armoire
- g_Item[client][PROP_DISTRIB] += SQL_FetchInt(query_items, 98); // prop distributeur
- g_Item[client][PROP_PLANTE] += SQL_FetchInt(query_items, 99); // prop plante
- g_Item[client][PROP_POUTRE] += SQL_FetchInt(query_items, 100); // prop poutre
- g_Item[client][PROP_CLOTURE] += SQL_FetchInt(query_items, 101); // prop cloture
- g_Item[client][PROP_GLOBE] += SQL_FetchInt(query_items, 102); // prop globe
- g_Item[client][GRAFFITI_1] += SQL_FetchInt(query_items, 103); // graffiti 1
- g_Item[client][GRAFFITI_2] += SQL_FetchInt(query_items, 104); // graffiti 2
- g_Item[client][GRAFFITI_3] += SQL_FetchInt(query_items, 105); // graffiti 3
- g_Item[client][GRAFFITI_4] += SQL_FetchInt(query_items, 107); // graffiti 4
- g_Item[client][GRAFFITI_5] += SQL_FetchInt(query_items, 106); // graffiti 5
- g_Item[client][GRAFFITI_6] += SQL_FetchInt(query_items, 108); // graffiti 6
- g_Item[client][GRAFFITI_7] += SQL_FetchInt(query_items, 109); // graffiti 7
- g_Item[client][GRAFFITI_8] += SQL_FetchInt(query_items, 110); // graffiti 8
- g_Item[client][GRAFFITI_9] += SQL_FetchInt(query_items, 111); // graffiti 9
- g_Item[client][GRAFFITI_10] += SQL_FetchInt(query_items, 112); // graffiti 10
- g_Item[client][MEDISHOT] += SQL_FetchInt(query_items, 113); // medishot
- g_Item[client][GRENADE_TACTIQUE] += SQL_FetchInt(query_items, 114); // grenade tactique....
- g_Item[client][SKIN_1] += SQL_FetchInt(query_items, 115); // Mona Sax
- g_Item[client][SKIN_2] += SQL_FetchInt(query_items, 116); // Punk Girl
- g_Item[client][SKIN_3] += SQL_FetchInt(query_items, 117); // Niko Bellic
- g_Item[client][SKIN_4] += SQL_FetchInt(query_items, 118); // Kingpin
- g_Item[client][SKIN_5] += SQL_FetchInt(query_items, 119); // Cripz 1
- g_Item[client][SKIN_6] += SQL_FetchInt(query_items, 120); // Cripz 2
- g_Item[client][SKIN_7] += SQL_FetchInt(query_items, 121); // Cripz Bleu Bandana
- g_Item[client][SKIN_8] += SQL_FetchInt(query_items, 122); // Bloodz 1
- g_Item[client][SKIN_9] += SQL_FetchInt(query_items, 123); // Bloodz 2
- g_Item[client][SKIN_10] += SQL_FetchInt(query_items, 124); // Murray
- g_Item[client][SKIN_11] += SQL_FetchInt(query_items, 125); // 50 Cent
- g_Item[client][SKIN_12] += SQL_FetchInt(query_items, 126); // Vaas
- g_Item[client][SKIN_13] += SQL_FetchInt(query_items, 127); // Vin Diesel
- g_Item[client][AMELIO_1] += SQL_FetchInt(query_items, 128); // Amélioration imprimante 1
- g_Item[client][AMELIO_2] += SQL_FetchInt(query_items, 129); // Amélioration imprimante 2
- g_Item[client][BLINDAGE] += SQL_FetchInt(query_items, 130); // Blindage imprimante
- g_Item[client][ENCRE] += SQL_FetchInt(query_items, 131); // Recharge imprimante
- g_Item[client][BIGMAC] += SQL_FetchInt(query_items, 132); // Big Mac
- g_Item[client][ROYAL_BACON] += SQL_FetchInt(query_items, 133); // Royal Bacon
- g_Item[client][ROYAL_CHEESE] += SQL_FetchInt(query_items, 134); // Royal Cheese
- g_Item[client][ROYAL_MCCHICKEN] += SQL_FetchInt(query_items, 135); // Royal McChicken
- g_Item[client][NUGGETS] += SQL_FetchInt(query_items, 136); // Nuggets
- g_Item[client][SODA] += SQL_FetchInt(query_items, 137); // Soda
- g_Item[client][FRITES] += SQL_FetchInt(query_items, 138); // Frites
- g_Item[client][SUNDAE] += SQL_FetchInt(query_items, 139); // Sundae
- g_Item[client][MCFLURRY] += SQL_FetchInt(query_items, 140); // McFlurry
- g_Item[client][MINES] += SQL_FetchInt(query_items, 141); // Mines
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement