Quote:
Originally Posted by nezo2001
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);
|
PHP код:
CarInfo[i][owner] // <- This is player ID or name?
Your Waring occur because you are trying to save the
format(); string <- integer