20.12.2012, 17:22
Quote:
Ok, solo son dudas que tengo, y los %0?, tambiйn los he visto.
/EDIT: Porquй Код:
mysql_fetch_field_row Код:
mysql_fetch_field Y si usas pawn Код:
pawn Код:
|
pawn Код:
stock VScopeCargar()
{
new query[300], string[128];
new contar;
for(new i=1; i < MAXIMO_VEHICULOS; i++)
{
format(query, sizeof(query), "SELECT * FROM vehiculos WHERE id = '%d'", i);
mysql_query(query);
mysql_store_result();
while(mysql_fetch_row_format(query,"|"))
{
mysql_fetch_field("modelo", string) VScope[i][vmodelo] = strval(string);
mysql_fetch_field("x", string) VScope[i][vx] = strval(string);
mysql_fetch_field("y", string) VScope[i][vy] = strval(string);
mysql_fetch_field("z", string) VScope[i][vz] = strval(string);
mysql_fetch_field("a", string) VScope[i][va] = strval(string);
mysql_fetch_field("color1", string) VScope[i][vcolor1] = strval(string);
mysql_fetch_field("color2", string) VScope[i][vcolor2] = strval(string);
mysql_fetch_field("propietario", string); VScope[i][vpropietario] = strval(string);
mysql_fetch_field("precio", string) VScope[i][vprecio] = strval(string);
contar++;
SpawnearVehiculo(i)
}
}
printf("VScope: %d vehiculos cargados.", contar);
}
Код:
C:\Users\Manu\Desktop\Cosas\SA-MP\Linea Enemiga\gamemodes\le.pwn(1596) : error 035: argument type mismatch (argument 1) C:\Users\Manu\Desktop\Cosas\SA-MP\Linea Enemiga\gamemodes\le.pwn(1597) : error 035: argument type mismatch (argument 1) C:\Users\Manu\Desktop\Cosas\SA-MP\Linea Enemiga\gamemodes\le.pwn(1598) : error 035: argument type mismatch (argument 1) C:\Users\Manu\Desktop\Cosas\SA-MP\Linea Enemiga\gamemodes\le.pwn(1599) : error 035: argument type mismatch (argument 1) C:\Users\Manu\Desktop\Cosas\SA-MP\Linea Enemiga\gamemodes\le.pwn(1600) : error 035: argument type mismatch (argument 1) C:\Users\Manu\Desktop\Cosas\SA-MP\Linea Enemiga\gamemodes\le.pwn(1601) : error 035: argument type mismatch (argument 1) C:\Users\Manu\Desktop\Cosas\SA-MP\Linea Enemiga\gamemodes\le.pwn(1602) : error 035: argument type mismatch (argument 1) C:\Users\Manu\Desktop\Cosas\SA-MP\Linea Enemiga\gamemodes\le.pwn(1603) : error 035: argument type mismatch (argument 1) C:\Users\Manu\Desktop\Cosas\SA-MP\Linea Enemiga\gamemodes\le.pwn(1604) : error 035: argument type mismatch (argument 1)
PD: Uso MySQL R6