WeSTMan
А вот тут текст!
- Сообщения
- 833
- Реакции
- 521
Имеются ошибки в плагине:
Как их исправить?
286 Строчка -
167 строчка -
90 строчка -
Удаление -
L 11/30/2013 - 17:15:59: SourceMod error session started
L 11/30/2013 - 17:15:59: Info (map "zm_lila_panic_173") (file "errors_20131130.log")
L 11/30/2013 - 17:15:59: [SM] Native "VFormat" reported: Client index 2052224333 is invalid
L 11/30/2013 - 17:15:59: [SM] Displaying call stack trace for plugin "zprops.smx":
L 11/30/2013 - 17:15:59: [SM] [0] Line 286, F:\Servers\myzmsrv\cstrike\addons\sourcemod\scripting\include\halflife.inc::PrintToChatAll()
L 11/30/2013 - 17:15:59: [SM] [1] Line 167, F:\Servers\myzmsrv\cstrike\addons\sourcemod\scripting\zprops.sp::DeleteProps()
L 11/30/2013 - 17:15:59: [SM] [2] Line 90, F:\Servers\myzmsrv\cstrike\addons\sourcemod\scripting\zprops.sp::PropMenu()
L 11/30/2013 - 17:17:22: [SM] Native "VFormat" reported: Client index 1433357915 is invalid
L 11/30/2013 - 17:15:59: Info (map "zm_lila_panic_173") (file "errors_20131130.log")
L 11/30/2013 - 17:15:59: [SM] Native "VFormat" reported: Client index 2052224333 is invalid
L 11/30/2013 - 17:15:59: [SM] Displaying call stack trace for plugin "zprops.smx":
L 11/30/2013 - 17:15:59: [SM] [0] Line 286, F:\Servers\myzmsrv\cstrike\addons\sourcemod\scripting\include\halflife.inc::PrintToChatAll()
L 11/30/2013 - 17:15:59: [SM] [1] Line 167, F:\Servers\myzmsrv\cstrike\addons\sourcemod\scripting\zprops.sp::DeleteProps()
L 11/30/2013 - 17:15:59: [SM] [2] Line 90, F:\Servers\myzmsrv\cstrike\addons\sourcemod\scripting\zprops.sp::PropMenu()
L 11/30/2013 - 17:17:22: [SM] Native "VFormat" reported: Client index 1433357915 is invalid
Как их исправить?
286 Строчка -
AcceptEntityInput(prop, "TurnOn", prop, prop, 0);
167 строчка -
PrintToChatAll("\x04[\x01ZPROPS\x04] Игрок \x03%N \x04удалил предмет!", sName);
90 строчка -
DeleteProps(client);
Удаление -
DeleteProps(client)
{
decl String:sUserId[8];
GetCmdArg(1, sUserId, sizeof(sUserId) - 1);
new iViewEntity = GetClientAimTarget(client, false);
if ( iViewEntity > MaxClients )
{
AcceptEntityInput(iViewEntity, "kill");
decl String:sName[32];
GetClientName(client, sName, sizeof(sName) - 1);
PrintToChatAll("\x04[\x01ZPROPS\x04] Игрок \x03%N \x04удалил предмет!", sName);
ShowPropMenu(client);
}
else
{
PrintToChat(client, "\x04[\x01ZPROPS\x04] Предмет не найден!");
}
}
{
decl String:sUserId[8];
GetCmdArg(1, sUserId, sizeof(sUserId) - 1);
new iViewEntity = GetClientAimTarget(client, false);
if ( iViewEntity > MaxClients )
{
AcceptEntityInput(iViewEntity, "kill");
decl String:sName[32];
GetClientName(client, sName, sizeof(sName) - 1);
PrintToChatAll("\x04[\x01ZPROPS\x04] Игрок \x03%N \x04удалил предмет!", sName);
ShowPropMenu(client);
}
else
{
PrintToChat(client, "\x04[\x01ZPROPS\x04] Предмет не найден!");
}
}