[Anticheat]___Invisible Fly Hack
[Anticheat]____Weapon/Ammo Hack
[Function]______ResetPlayerWeaponSlot
[Function]_______FIX_SetPlayerAmmo
[ServerMod]______TDM | Zombie Apokalypse
Странно у меня всё работает) может быть не так прочитали и перепутали с другой функцией?
[Anticheat]___Invisible Fly Hack
[Anticheat]____Weapon/Ammo Hack
[Function]______ResetPlayerWeaponSlot
[Function]_______FIX_SetPlayerAmmo
[ServerMod]______TDM | Zombie Apokalypse
Да перепутал...
Но теперь ошибки в mysql_log
[18:05:21] [ERROR] mysql_format - destination size is too small
[18:05:21] [ERROR] CMySQLQuery::Execute[] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
[18:05:24] [ERROR] mysql_format - no value for specifier "%s" available
на это замени:PHP код:
`AdminKey` = '%s'
PHP код:
`AdminKey` = '%d'
[Anticheat]___Invisible Fly Hack
[Anticheat]____Weapon/Ammo Hack
[Function]______ResetPlayerWeaponSlot
[Function]_______FIX_SetPlayerAmmo
[ServerMod]______TDM | Zombie Apokalypse
так же
ПопробуйPHP код:
case 6:
{
if(response)
{
new idadm = GetPVarInt(playerid, "AdminID");
info[idadm][pAdminKey] = strval(inputtext);
info[idadm][pAdmin] = 1;
static str[] = "UPDATE `accounts` SET `Admin` = '%d', `AdminKey` = '%d' WHERE `Name` = '%e'";
new string[102];
mysql_format(Connect, string, 102, str, info[idadm][pAdmin], info[idadm][pAdminKey], info[idadm][pName]);
mysql_function_query(Connect, string, false, "", "");
SCM(idadm, -1, "Успешно!");
}
}
[Anticheat]___Invisible Fly Hack
[Anticheat]____Weapon/Ammo Hack
[Function]______ResetPlayerWeaponSlot
[Function]_______FIX_SetPlayerAmmo
[ServerMod]______TDM | Zombie Apokalypse
Размеры ячеек подсчитывать правильно надо и такой момент не повторится в кодонаписании.
[Anticheat]___Invisible Fly Hack
[Anticheat]____Weapon/Ammo Hack
[Function]______ResetPlayerWeaponSlot
[Function]_______FIX_SetPlayerAmmo
[ServerMod]______TDM | Zombie Apokalypse
Эту тему просматривают: 1 (пользователей: 0 , гостей: 1)