28.05.2012, 10:20
PHP код:
stock OnPlayerUpdateEx1(playerid)
{
if(GetPVarInt(playerid, "IsAuthed") > 0)
{
new query[1500], str[100];
strcat(query, "UPDATE players SET ");
format(str, sizeof(str), "`Cars`=%d,`Posc_x`=%f,`Posc_y`='%f',`Posc_z`='%f',`Posc_a`='%f',`Color1`='%d',`Color2`='%d' WHERE name = '%s'", PlayerInfo[playerid][pCar], PlayerInfo[playerid][Posc_x], PlayerInfo[playerid][Posc_y], PlayerInfo[playerid][Posc_z], PlayerInfo[playerid][Posc_a], PlayerInfo[playerid][pColor1], PlayerInfo[playerid][pColor2], getpl(playerid)); strcat(query, str);
if(!mysql_query(query)) mysql_debug(1), mysql_query(query), mysql_debug(0);
}
}