Big format mysql
#9

Is this correctly?

pawn Код:
new
        Placa = random(255255), carroID, ricopStr[218], ricopStr2[144], ricopStr3[362];
    format(ricopStr, sizeof(ricopStr), "INSERT INTO veiculos (id, dono, modelo, x, y, z, a, cor1, cor2, mod1, mod2, mod3, mod4, mod5, mod6, mod7, mod8, mod9, mod10, mod11, mod12, trancado, placa, alarme, imobiliser, insurances, factionid, faction, spawnado) ");
    format(ricopStr2, sizeof(ricopStr2), "VALUES (NULL, '%s', %d, %f, %f, %f, %f, %d, %d, 0, 0,0,0,0,0,0,0,0,0,0,0, %d, %d, %d, %d, %d, %d, %d, %d)", pName(playerid),modeloid, concessionariaSpawn_X, concessionariaSpawn_Y, concessionariaSpawn_Z, concessionariaSpawn_A, COR_PADRAO, COR_PADRAO, 1, Placa, 1, 1, START_INSURANCE, FACTION_CIVIL, 0, 0);
    format(ricopStr3, 362, "%s%s", ricopStr, ricopStr2);
    mysql_query(ricopStr3);
Reply


Messages In This Thread
Big format mysql - by Ricop522 - 06.11.2011, 23:08
Re: Big format mysql - by Ricop522 - 07.11.2011, 01:36
Re: Big format mysql - by Norn - 07.11.2011, 02:00
Re: Big format mysql - by Ricop522 - 07.11.2011, 02:08
Re: Big format mysql - by Norn - 07.11.2011, 02:10
Re: Big format mysql - by Ricop522 - 07.11.2011, 02:13
Re: Big format mysql - by Norn - 07.11.2011, 02:14
Re: Big format mysql - by dowster - 07.11.2011, 02:17
Re: Big format mysql - by Ricop522 - 07.11.2011, 02:18
Re: Big format mysql - by dowster - 07.11.2011, 02:25

Forum Jump:


Users browsing this thread: 1 Guest(s)