28.08.2015, 19:03
PHP код:
new UMoney[128];
new Smoney[128];
format(Smoney, sizeof(Smoney), "SELECT pMoney FROM users WHERE pName='%s'",CarInfo[i][owner]);
mysql_query(1, Smoney);
format(UMoney, sizeof(UMoney), "UPDATE users SET pMoney='%i' WHERE username='%s'",Smoney+CarInfo[i][CarPrice], CarInfo[i][owner]);
mysql_query(1, UMoney);