[Ajuda] Pegar id na tabela veiculos mysql
#1

Bom eu queria saber como que eu pego o id na tabela dos veiculos no mysql mais eu nгo consigo de jeito nenhum

IMAGES:

CODE:
pawn Код:
new vehicleid = GetPlayerVehicleID(playerid);
        GetVehicleColor(vehicleid, ColorOne, ColorTwo);
        format(Query, sizeof(Query), "SELECT * FROM vehicles WHERE id='%i'",VehicleInfo[id]); // Formats the query for "mysql_query"
        mysql_query(mysql,Query); // Querys the "Query" Variable.
        mysql_store_result(); // Stores the result from Query
        while(mysql_fetch_row_format(Query,"|"))
        {
            sscanf(Query, "p<|>e<is[25]iiffffiii>", VehicleInfo[id]); // Pretty neat ehh? [ ID, OWNER, MODEL, PRICE, POS X, POS Y, POS Z, POS A ]
        }
Reply


Messages In This Thread
Pegar id na tabela veiculos mysql - by Alexbav - 12.01.2014, 02:25
Re: Pegar id na tabela veiculos mysql - by Gii - 12.01.2014, 02:36
Re: Pegar id na tabela veiculos mysql - by smiiir - 12.01.2014, 12:21
Re: Pegar id na tabela veiculos mysql - by Alexbav - 12.01.2014, 13:59
Re: Pegar id na tabela veiculos mysql - by Alexbav - 12.01.2014, 14:33
Re: Pegar id na tabela veiculos mysql - by Alexbav - 12.01.2014, 23:41
Re: Pegar id na tabela veiculos mysql - by Kmatsu - 13.01.2014, 00:05
Re: Pegar id na tabela veiculos mysql - by Alexbav - 13.01.2014, 00:08
Re: Pegar id na tabela veiculos mysql - by Kmatsu - 13.01.2014, 00:33
Re: Pegar id na tabela veiculos mysql - by Alexbav - 13.01.2014, 00:35

Forum Jump:


Users browsing this thread: 1 Guest(s)