MySQL no load [REP+]
#10

The code does not work, a little up , please
But maybe its not coming charging, but the INSERT, so here is the code

pawn Код:
public Plante_update(i)
{
    new Requete[1024], result[LITTLE_STRING], Requetes[1024];
   
    format(Requetes, sizeof(Requetes), "SELECT COUNT(*) FROM therp_plantes");
    mysql_query(Requetes);

    mysql_store_result();
    mysql_fetch_row(result);

    i = strval(result) + 1;
    mysql_free_result();
   
    format(Requete, sizeof(Requete),"INSERT INTO therp_plantes SET `Type`='%d', `Variete`='%d', `Sexe`='%d', `Recolte`='%d', `Temps`='%d', `X`='%f', `Y`='%f', `Z`='%f'",

    Plante_infos[i][Plante_type],
    Plante_infos[i][Plante_variete],
    Plante_infos[i][Plante_sexe],
    Plante_infos[i][Plante_recolte],
    Plante_infos[i][Plante_temps],
    Plante_infos[i][Plante_X],
    Plante_infos[i][Plante_Y],
    Plante_infos[i][Plante_Z]);

    mysql_query(Requete);
    return 1;
}
Reply


Messages In This Thread
MySQL no load [REP+] - by Drek - 19.05.2015, 08:31
Re: MySQL no load - by RaeF - 19.05.2015, 08:36
Re : MySQL no load - by Drek - 19.05.2015, 08:37
Re : MySQL no load [REP+] - by Drek - 20.05.2015, 08:31
Re : MySQL no load [REP+] - by Drek - 22.05.2015, 07:37
Re: MySQL no load [REP+] - by rappy93 - 22.05.2015, 11:47
Re: MySQL no load [REP+] - by LMaxCo - 22.05.2015, 11:54
Re: MySQL no load [REP+] - by Matess - 22.05.2015, 12:19
Re : MySQL no load [REP+] - by Drek - 24.05.2015, 12:42
Re : MySQL no load [REP+] - by Drek - 26.05.2015, 10:44

Forum Jump:


Users browsing this thread: 7 Guest(s)