Mysql Statment
#6

Quote:
Originally Posted by nezo2001
Посмотреть сообщение
PHP код:
                new UMoney[128];
                new 
Smoney[128];
                
format(Smoneysizeof(Smoney), "SELECT pMoney FROM users WHERE pName='%s'",CarInfo[i][owner]);
                
mysql_query(1Smoney);
                
format(UMoneysizeof(UMoney), "UPDATE users SET pMoney='%i' WHERE username='%s'",Smoney+CarInfo[i][CarPrice], CarInfo[i][owner]);
                
mysql_query(1UMoney); 
PHP код:
CarInfo[i][owner// <- This is player ID or name? 
Your Waring occur because you are trying to save the format(); string <- integer
Reply


Messages In This Thread
Mysql Statment - by nezo2001 - 27.08.2015, 16:32
Re: Mysql Statment - by Luke_James - 27.08.2015, 16:44
Re: Mysql Statment - by nezo2001 - 27.08.2015, 16:46
AW: Mysql Statment - by Macronix - 27.08.2015, 21:18
Re: Mysql Statment - by nezo2001 - 28.08.2015, 19:03
Re: Mysql Statment - by Logofero - 28.08.2015, 20:02

Forum Jump:


Users browsing this thread: 2 Guest(s)