SHARE
TWEET

Untitled

a guest Mar 17th, 2019 112 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. forward OnFrakAutoCreated(playerid,fc);
  2. public OnFrakAutoCreated(playerid,fc)
  3. {
  4.     new query[512];
  5.    
  6.    
  7.     new cid = cache_insert_id();
  8.     FactionCars[fc][factioncardbid] = cid;
  9.     printf("playerid: %d / fc: %d / cid: %d / factioncardbid: %d", playerid, fc, cid, FactionCars[fc][factioncardbid]);
  10.  
  11.  
  12.  
  13.     format(query,sizeof(query),"UPDATE FraktionsVehikels SET fTuning0='%d',fTuning1='%d',fTuning2='%d',fTuning3='%d',fTuning4='%d',fTuning5='%d',fTuning6='%d',fTuning7='%d',fTuning8='%d',fTuning9='%d',fTuning10='%d',fTuning11='%d',fTuning12='%d',fTuning13='%d',fTuning14='%d',fTuning15='%d',fTuning16='%d',fTuning17='%d' WHERE factioncardbid ='%d'",
  14.     FactionCars[fc][fTuning][0],FactionCars[fc][fTuning][1],FactionCars[fc][fTuning][2],FactionCars[fc][fTuning][3],FactionCars[fc][fTuning][4],FactionCars[fc][fTuning][5],FactionCars[fc][fTuning][6],FactionCars[fc][fTuning][7],FactionCars[fc][fTuning][8],FactionCars[fc][fTuning][9],FactionCars[fc][fTuning][10],FactionCars[fc][fTuning][11],FactionCars[fc][fTuning][12],
  15.     FactionCars[fc][fTuning][12],FactionCars[fc][fTuning][13],FactionCars[fc][fTuning][14],FactionCars[fc][fTuning][15],FactionCars[fc][fTuning][16],FactionCars[fc][fTuning][17],FactionCars[fc][factioncardbid]);
  16.     mysql_pquery(mysqlcon, query, "", "");
  17.     printf(query);
  18.     SCM(playerid,-1,"ok.");
  19.    
  20.    
  21.    
  22.    
  23.     return 1;
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top