Mysql R39-2 Don't save
#3

I think the array size isn't enough.

pawn Код:
new query[0xFF], Float:pos[3];  
GetPlayerPos(playerid,pos[0],pos[1],pos[2]);  

mysql_format(mysql, query, sizeof(query),"UPDATE `comptejoueurs` SET `Admin`=%d, `Vip`=%d, `Argent`=%d, `PositionX`=%f, `PositionY`=%f, `PositionZ`=%f WHERE `ID`=%d",  
    InfoJoueur[playerid][Admin],
    InfoJoueur[playerid][Vip],
    InfoJoueur[playerid][Argent],
    pos[0],pos[1],pos[2],
    InfoJoueur[playerid][ID]
);

mysql_tquery(mysql,query,"","");  
printf("%s",query);
Reply


Messages In This Thread
Mysql R39-2 Don't save - by BreakStore - 01.02.2015, 15:13
Re: Mysql R39-2 Don't save - by amirab - 01.02.2015, 17:01
Re: Mysql R39-2 Don't save - by zPain - 01.02.2015, 17:10

Forum Jump:


Users browsing this thread: 1 Guest(s)