01.04.2015, 02:04
see
The valve is already store in the database as i' had checked but here it seem a problem
Where am i wrong
PHP код:
public OnPlayerSpawn(playerid)
{
new fields, rows, string[128];
cache_get_data(rows, fields, gSQLHandle);
GivePlayerWeapon(playerid, cache_get_field_content_int(0, "Gunonhand", gSQLHandle), cache_get_field_content_int(0, "Ammoonhand", gSQLHandle));
format(query, sizeof(query), "UPDATE `user_accounts` SET `Gunonhand`=0,\
`Ammoonhand`=0 WHERE `UserID` = %i", PlayerInfo[playerid][pUserID]);
mysql_function_query(gSQLHandle, query, false, "SaveUserAccount", "ii", playerid, 3);
Where am i wrong