IsPlayerConnected problem
#5

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:

PHP код:
pData[targetID][pMoney] += parameter;
ResetPlayerMoney(targetID);
GivePlayerMoney(targetIDpData[targetID][pMoney]);
mysql_format(g_sqlquerysizeof(query), "UPDATE characters SET p_money = '%d' WHERE p_name = '%e'"pData[targetID][pMoney], ReturnName(targetID)); 
    
mysql_tquery(g_sqlquery); 
Reply


Messages In This Thread
IsPlayerConnected problem - by polygxn - 20.02.2019, 21:56
Re: IsPlayerConnected problem - by DaniceMcHarley - 20.02.2019, 22:14
Re: IsPlayerConnected problem - by CherryMond - 20.02.2019, 22:17
Re: IsPlayerConnected problem - by polygxn - 20.02.2019, 22:18
Re: IsPlayerConnected problem - by Undef1ned - 20.02.2019, 22:43
Re: IsPlayerConnected problem - by polygxn - 20.02.2019, 22:53
Re: IsPlayerConnected problem - by AdamsLT - 20.02.2019, 23:11
Re: IsPlayerConnected problem - by polygxn - 20.02.2019, 23:21

Forum Jump:


Users browsing this thread: 2 Guest(s)