[AYUDA] No se crea vehнculo [MySQL]
#6

Quote:
Originally Posted by elvago
Посмотреть сообщение
Ok, solo son dudas que tengo, y los %0?, tambiйn los he visto.
/EDIT:
Porquй
Код:
mysql_fetch_field_row
y no
Код:
mysql_fetch_field
?
Y si usas
pawn Код:
mysql_fetch_field("modelo", string); VScope[i][vmodelo] = strval(string);
en vez de
pawn Код:
mysql_fetch_field_row(string, "modelo"); VScope[i][vmodelo] = strval(string);
?
Probй asн:
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);
}
Y me saltaron estos errores de Type Mystach
Код:
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)
Me salto en cada linea que esta mysql_fetch_field

PD: Uso MySQL R6
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)