Big format mysql
#7

Quote:
Originally Posted by Ricop522
Посмотреть сообщение
Like this ?
pawn Код:
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) VALUES (NULL, '%s', %d, %f, %f, %f, %f, %d, %d, NULL, NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, %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);
    mysql_query(ricopStr);
Yes, you might get "input line too long" from the compiler, if so just put the variables on a new line.
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)