20.02.2019, 22:43
mysql_format(g_sql, query, sizeof(query), "UPDATE characters SET p_money = '%d' WHERE p_name = '%e'", pData[playerid][pMoney], ReturnName(targetID));
'pData[playerid][pMoney]' should be 'pData[targetID][pMoney]'
By the way, it should be like this:
'pData[playerid][pMoney]' should be 'pData[targetID][pMoney]'
By the way, it should be like this:
PHP код:
pData[targetID][pMoney] += parameter;
ResetPlayerMoney(targetID);
GivePlayerMoney(targetID, pData[targetID][pMoney]);
mysql_format(g_sql, query, sizeof(query), "UPDATE characters SET p_money = '%d' WHERE p_name = '%e'", pData[targetID][pMoney], ReturnName(targetID));
mysql_tquery(g_sql, query);