Posts: 10
Threads: 2
Joined: Mar 2009
Reputation:
0
Hey Guys,
I got a small problem i should post the code first:
Code:
[...] #define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 [...] public OnPlayerCommandText(playerid, cmdtext[]) { dcmd(playsound, 9, cmdtext); return 0; [...] } [...] dcmd_playsound(playerid, params[]) { new value; if (sscanf(params, "i", value)) SendClientMessage(playerid, 0xFF0000AA, "Usage: "/playsound <Sound Id>""); else { PlayerPlaySound(playerid, value,0.0,0.0,0.0); SendClientMessage(playerid, 0x00FF00AA, "Playing Sound..."); } return 1; } [...]
ERROR MSG: error 017: undefined symbol «sscanf»
Now my Question what is wrong?
[…] means not important
Best regards,
Seoson
Posts: 10
Threads: 2
Joined: Mar 2009
Reputation:
0
Yes but what is the defenition for that?
There is no entry on the wiki Page: https://sampwiki.blast.hk/wiki/Fast_Commands
Posts: 747
Threads: 12
Joined: Nov 2007
Reputation:
0
Posts: 10
Threads: 2
Joined: Mar 2009
Reputation:
0
Thx a lot
Ошибки с инклудами при компиляции. |
||||||
|
||||||
|
|
|
OMP Build11
When this error appears it crashes my server
[22:57:22] [Info] sscanf warning (./includes/discord/discord_api.pwn:32): "Unclosed default value." [22:57:22] [Info] sscanf error (./includes/discord/discord_api.pwn:32): "String/array must include a length, please add a destination size."
Code
if (sscanf(content, "s[20]S()[200]", command, params)) { // This line return 0; }
Whole Code:
`
public DCC_OnMessageCreate(const DCC_Message: message) {
new
DCC_User: author,
DCC_Channel: channel,
DCC_Message: messageid,
bool: is_bot = false,
content[200 + MAX_CMD_NAME + 2],
command[MAX_CMD_NAME],
params[200],
discord[MAX_CMD_LEN] = "discord_"
;
DCC_GetMessageChannel(message, channel);
DCC_GetMessageAuthor(message, author);
messageid = message;
DCC_IsUserBot(author, is_bot);
DCC_GetMessageContent(message, content);
if (is_bot || content[0] != CMD_PREFIX) { // Skip if the message author is a bot or is not a command
return 0;
}
if (sscanf(content, "s[20]S()[200]", command, params)) {
return 0;
}
for (new i = strlen(command) - 1; i != 0; i --) {
command[i] |= 0x20; // lower case using bitwise OR operator
}
strcat(discord, command[1]);
if (isnull(params)) {
params = "1";
}
OnDiscordCommandPerformed(channel, author, bool: CallLocalFunction(discord, "iiis", _: channel, _: author, _: messageid, params));
return 1;
}`
I’m using discord connector plugin with this.
Hello, after updating sscanf2 to the latest version, by connecting sscanf2 include, there are 26 errors after compilation, and more than 20+ warnings.
// These are connected includes. #include <a_samp> #include <a_http> #include <a_mysql> #include <crashdetect> #include <mdialog> #include <callbacks> #include <sscanf2> #include <streamer> #include <colandreas> #include <foreach> #include <YSF> #include <nex-ac> #include <PlayerNearDetailCar> #include <audio> #include <progress_bar> #include <Pawn.CMD> #include <geolocation> #include <objectweaponsutil>
`C:UsersVovaDesktopZombie Projectpawnoincludemdialog.inc(656) : warning 219: local variable «i» shadows a variable at a preceding level
C:UsersVovaDesktopZombie Projectpawnoincludemdialog.inc(706) : warning 219: local variable «i» shadows a variable at a preceding level
C:UsersVovaDesktopZombie Projectpawnoincludecallbacks.inc(363) : warning 219: local variable «i» shadows a variable at a preceding level
C:UsersVovaDesktopZombie Projectpawnoincludecallbacks.inc(516) : warning 219: local variable «i» shadows a variable at a preceding level
C:UsersVovaDesktopZombie Projectpawnoincludecallbacks.inc(651) : warning 219: local variable «i» shadows a variable at a preceding level
C:UsersVovaDesktopZombie Projectpawnoincludecallbacks.inc(669) : warning 219: local variable «i» shadows a variable at a preceding level
C:UsersVovaDesktopZombie Projectpawnoincludecallbacks.inc(812) : warning 219: local variable «i» shadows a variable at a preceding level
C:UsersVovaDesktopZombie Projectpawnoincludecallbacks.inc(940) : warning 219: local variable «i» shadows a variable at a preceding level
C:UsersVovaDesktopZombie Projectpawnoincludecallbacks.inc(1153) : warning 219: local variable «i» shadows a variable at a preceding level
C:UsersVovaDesktopZombie Projectpawnoincludesscanf2.inc(394) : warning 219: local variable «name» shadows a variable at a preceding level
C:UsersVovaDesktopZombie Projectpawnoincludesscanf2.inc(812) : warning 219: local variable «name» shadows a variable at a preceding level
C:UsersVovaDesktopZombie Projectpawnoincludesscanf2.inc(818) : warning 219: local variable «i» shadows a variable at a preceding level
C:UsersVovaDesktopZombie Projectpawnoincludesscanf2.inc(1031) : warning 219: local variable «name» shadows a variable at a preceding level
C:UsersVovaDesktopZombie Projectpawnoincludecolandreas.inc(721) : warning 219: local variable «i» shadows a variable at a preceding level
C:UsersVovaDesktopZombie Projectpawnoincludecolandreas.inc(915) : warning 219: local variable «i» shadows a variable at a preceding level
C:UsersVovaDesktopZombie Projectpawnoincludeforeach.inc(1582) : warning 219: local variable «i» shadows a variable at a preceding level
C:UsersVovaDesktopZombie Projectpawnoincludeforeach.inc(1607) : warning 219: local variable «i» shadows a variable at a preceding level
C:UsersVovaDesktopZombie ProjectpawnoincludePlayerNearDetailCar.inc(191) : warning 219: local variable «id» shadows a variable at a preceding level
C:UsersVovaDesktopZombie Projectpawnoincludeaudio.inc(137) : warning 219: local variable «name» shadows a variable at a preceding level
C:UsersVovaDesktopZombie Projectpawnoincludeaudio.inc(182) : warning 219: local variable «name» shadows a variable at a preceding level
C:UsersVovaDesktopZombie Projectpawnoincludeprogress_bar.inc(141) : warning 219: local variable «i» shadows a variable at a preceding level
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(76) : error 017: undefined symbol «sscanf_»; did you mean «SSCANF__»?
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(287) : error 017: undefined symbol «sscanf_»; did you mean «SSCANF__»?
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(305) : error 001: expected token: «;», but found «{«
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(307) : error 010: invalid function or declaration
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(311) : error 055: start of function body without function header
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(312) : error 010: invalid function or declaration
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(319) : error 001: expected token: «;», but found «)»
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(321) : error 010: invalid function or declaration
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(325) : error 010: invalid function or declaration
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(327) : error 010: invalid function or declaration
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(329) : error 010: invalid function or declaration
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(331) : error 010: invalid function or declaration
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(333) : error 010: invalid function or declaration
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(338) : error 001: expected token: «;», but found «-identifier-«
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(339) : error 010: invalid function or declaration
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(344) : error 010: invalid function or declaration
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(347) : error 010: invalid function or declaration
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(351) : error 010: invalid function or declaration
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(353) : error 010: invalid function or declaration
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(356) : error 010: invalid function or declaration
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(359) : error 010: invalid function or declaration
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(362) : error 021: symbol already defined: «num»
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(364) : error 010: invalid function or declaration
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(367) : error 010: invalid function or declaration
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(369) : error 010: invalid function or declaration
C:UsersVovaDesktopZombie Projectpawnoincludegeolocation.inc(372) : error 010: invalid function or declaration
Compilation aborted.
Pawn compiler 3.10.10 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
`
How to fix it?
Hello guys I’m making a trucking server and my gamemode is not loading because of a Error, Can someone help me? My server Log :
I am getting an problem which is
Error code 017: undefined symbol sscanf
Whenever I use like if sscanf then this error come up plz help
Thank you.
sscanf has become incompatible with YSI Includes, when enabling the new sscanf for open.mp YSI returns the following error: «fatal error 111: user error: OnScriptInit defined»
[2022-12-27T02:05:37+0300] [Info] Loading plugin: sscanf
[2022-12-27T02:05:37+0300] [Info] Could not load plugin:
omp 11
It would be nice if sscanf can be ported into open.mp since it’s already at the OBT stage so people can put it inside the «components» folder.
getting these errors in server logs.txt
Loading plugin: sscanf.so
Failed (/lib/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by plugins/sscanf.so))
Error: Function not registered: 'SSCANF_Init'
Error: Function not registered: 'SSCANF_IsConnected'
Error: Function not registered: 'SSCANF_Join'
Error: Function not registered: 'SSCANF_Leave'
Error: Function not registered: 'SSCANF_Levenshtein'
Error: Function not registered: 'SSCANF__'
[debug] Run time error 19: "File or function is not found"
[debug] SSCANF_Init
[debug] SSCANF_IsConnected
[debug] SSCANF_Join
[debug] SSCANF_Leave
[debug] SSCANF_Levenshtein
[debug] SSCANF__
[debug] Run time error 19: "File or function is not found"
[debug] SSCANF_Init
[debug] SSCANF_IsConnected
[debug] SSCANF_Join
[debug] SSCANF_Leave
[debug] SSCANF_Levenshtein
[debug] SSCANF__
Using Centos 7, help me please.
Thank you.
Hi there! I have some errors after compile my gamemode using sscanf 2.11.4
C:UsersmarcoDesktopServer RPServerRP.pwn:99 (error) undefined symbol "_ALS"; did you mean "ALL"? C:UsersmarcoDesktopServer RPServerRP.pwn:99 (error) invalid expression, assumed zero C:UsersmarcoDesktopServer RPServerRP.pwn:99 (error) undefined symbol "_ALS_go" C:UsersmarcoDesktopServer RPServerRP.pwn:99 (fatal) too many error messages on one line Build encountered fatal error
The code in the gamemode is this…
public OnGameModeExit() { for (new i = 0, j = GetPlayerPoolSize(); i <= j; i++) { if (IsPlayerConnected(i)) { OnPlayerDisconnect(i, 1); // This is the line 99 } } mysql_close(g_SQL); return 1; }
What should I do to fix it?
I apologize for my poor English :s
There is a typo at
It should be Satchel Charges
Also should renamed to Spraycan
Does this plugin supports strings where every cell is separate Unicode symbol (UTF-32 coded)?
There are currently some positioning issues with newer versions of the plugin which are released in a fork of this repository as part of the newer 2.10 branch: https://github.com/Y-Less/sscanf
Perhaps it would be more wise to combine these 2 repos into one (for example, this one, since it has been around for years), separating new releases into a new git branch and making it the main one?
I am also interested in the relevance of this branch of releases in relation to 2.8.* and 2.10.* versions.
Everything in the title, see below for error & fix:
cheaterman@cmans-laptop ~/Dev/pawn-sscanf master $ make
rm -f *~ *.o *.so
g++ -D SSCANF -m32 -fPIC -c -O3 -w -D LINUX -D PROJECT_NAME="sscanf" -I ./SDK/amx/ ./SDK/amx/*.c
g++ -D SSCANF -m32 -fPIC -c -O3 -w -D LINUX -D PROJECT_NAME="sscanf" -I ./SDK/amx/ ./SDK/*.cpp
g++ -D SSCANF -m32 -fPIC -c -O3 -w -D LINUX -D PROJECT_NAME="sscanf" -I ./SDK/amx/ *.cpp
specifiers.cpp: In function 'bool DoSD(char**, char**, int*)':
specifiers.cpp:877:28: error: invalid conversion from 'char' to 'char*' [-fpermissive]
877 | *(ret + (*length - 1)) = '';
| ^~~~
| |
| char
make: *** [makefile:24: SSCANF] Error 1
cheaterman@cmans-laptop ~/Dev/pawn-sscanf master $ vim specifiers.cpp +876
cheaterman@cmans-laptop ~/Dev/pawn-sscanf master $ make
rm -f *~ *.o *.so
g++ -D SSCANF -m32 -fPIC -c -O3 -w -D LINUX -D PROJECT_NAME="sscanf" -I ./SDK/amx/ ./SDK/amx/*.c
g++ -D SSCANF -m32 -fPIC -c -O3 -w -D LINUX -D PROJECT_NAME="sscanf" -I ./SDK/amx/ ./SDK/*.cpp
g++ -D SSCANF -m32 -fPIC -c -O3 -w -D LINUX -D PROJECT_NAME="sscanf" -I ./SDK/amx/ *.cpp
g++ -m32 -O2 -fshort-wchar -shared -o "sscanf.so" *.o
cheaterman@cmans-laptop ~/Dev/pawn-sscanf master $ git commit -p
diff --git a/specifiers.cpp b/specifiers.cpp
index 8825a7b..2b9e002 100644
--- a/specifiers.cpp
+++ b/specifiers.cpp
@@ -873,7 +873,7 @@ bool
if (i >= *length)
{
logprintf("sscanf warning: String buffer overflow.");
- *(ret + (*length - 1)) = '';
+ **(ret + (*length - 1)) = '';
}
else
{
Code: new sArray[16][64]; sscanf("||||test|||||||||||", "p<|>a<s[64]>[16]", sArray);
Result: https://i.imgur.com/ZRKFyjU.png
Code: new sArray[16][64]; sscanf("|||||||||||||||test", "p<|>a<s[64]>[16]", sArray);
Result: https://i.imgur.com/2OwpqWk.png
Code: new sArray[16][64]; sscanf("|||||||||||||||test", "p<|>A<s[64]>(empty)[16]", sArray);
Result: https://i.imgur.com/e5LSZpI.png
Code: new sArray[16][64]; sscanf("|||||||||||||||test", "p<|>s[64]s[64]s[64]s[64]s[64]s[64]s[64]s[64]s[64]s[64]s[64]s[64]s[64]s[64]s[64]s[64]", sArray[0], sArray[1], sArray[2], sArray[3], sArray[4], sArray[5], sArray[6], sArray[7], sArray[8], sArray[9], sArray[10], sArray[11], sArray[12], sArray[13], sArray[14], sArray[15]);
Result: also
I think this is sscanf bug. Please fix it
Online 2 players:
[ID: 1] Mark_Dwellers
[ID: 2] Mark_Dwellerss
// Test 1: correct
sscanf(«Mark_Dwellers», «u», id);
// result: id = 1;
// Test 2: error
sscanf(«Mark_Dwellerss», «u», id);
// result: id = 1; should be: id = 2;
extract
macro gives an error in the following example:
#include <a_samp> #include <sscanf2> main() { static params[] = "4 5.0"; extract params -> new vehicleid, Float:fuel; // error 029: invalid expression, assumed zero }
It seems that the problem was introduced in 9d54c11, the above example compiles well with the previous versions of sscanf2.inc.
Содержание
- Форум Pawn.Wiki — Воплоти мечту в реальность!: error 017: undefined symbol «to_player» — Форум Pawn.Wiki — Воплоти мечту в реальность!
- Компилирования
- #1 azik215
- Прикрепленные файлы
- #2 The
- #3 azik215
- #4 FasT of boni
- #5 azik215
- #6 FasT of boni
- #7 azik215
- #8 FasT of boni
- Форум Pawn.Wiki — Воплоти мечту в реальность!: error 017 — Форум Pawn.Wiki — Воплоти мечту в реальность!
- Форум Pawn.Wiki — Воплоти мечту в реальность!: error 017: undefined symbol «pc_cmd_gnews» — Форум Pawn.Wiki — Воплоти мечту в реальность!
Форум Pawn.Wiki — Воплоти мечту в реальность!: error 017: undefined symbol «to_player» — Форум Pawn.Wiki — Воплоти мечту в реальность!
- Pawn скриптинг
- Первая помощь
- Проблемы с компилированием
- Правила форума
- Просмотр новых публикаций
- Группа: Активные пользователи
- Сообщений: 76
- Регистрация: 15 февраля 22
суть такая, хотел усовершенствовать свой код, в итоге ничего не получилось, так как опыта мало.
Ошибка:
Сам код, на который ругается павно:
поправте, если в коде есть ошибка.
Сообщение отредактировал Kirill_Babkin: 06 июня 2022 — 17:31
- Группа: Активные пользователи
- Сообщений: 1 039
- Регистрация: 07 июня 21
Сообщение отредактировал Perdolinka: 06 июня 2022 — 17:55
Источник
Компилирования
#1 azik215
Помогите , что за ошибка??
Прикрепленные файлы
Безымянный.png152,94К 3 Количество загрузок:
#2 The
Помогите , что за ошибка??
error 017 : undefined symbol «%s» — неизвестный символ «%s» ;
warning 217: loose indentation — не выровненная строка
Сообщение отредактировал The: 12 Сентябрь 2014 — 18:56
#3 azik215
error 017 : undefined symbol «%s» — неизвестный символ «%s» ;
с ним то , что делать с 2 я разобрался
#4 FasT of boni
warning 217: loose indentation
Проблема с отступами. Внутри функции отступы должны быть сделаны или с помощью TAB, или с помощью пробелов — нельзя их смешивать, выберите что-то одно.
#5 azik215
warning 217: loose indentation
Проблема с отступами. Внутри функции отступы должны быть сделаны или с помощью TAB, или с помощью пробелов — нельзя их смешивать, выберите что-то одно
Я с этим разобрался мне нужно
error 017 : undefined symbol «%s» — неизвестный символ «%s» ;
Что с ним делать?
LogMgr_Print(g_moduleCore, LogType_Debug, «PurchaseUpgrade», «Client %d tried to buy interlocked upgrade %s», client, name);
#6 FasT of boni
Я с этим разобрался мне нужно
error 017 : undefined symbol «%s» — неизвестный символ «%s» ;
Что с ним делать?
LogMgr_Print(g_moduleCore, LogType_Debug, «PurchaseUpgrade», «Client %d tried to buy interlocked upgrade %s», client, name);
error 017 : undefined symbol «x»
Используемый символ не найден. Или забыли переменную объявить, или не подключили модуль. Если это какая-то SourceMod команда, например, CS_RespawnPlayer, то зайдите в API и введите её в поле «Search:». Выше над командой жирным шрифтом будет указано имя модуля, например, «cstrike», и чтобы его подключить, добавьте в самый верх кода #include
#7 azik215
Я с этим разобрался мне нужно
error 017 : undefined symbol «%s» — неизвестный символ «%s» ;
Что с ним делать?
LogMgr_Print(g_moduleCore, LogType_Debug, «PurchaseUpgrade», «Client %d tried to buy interlocked upgrade %s», client, name);
error 017 : undefined symbol «x»
Используемый символ не найден. Или забыли переменную объявить, или не подключили модуль. Если это какая-то SourceMod команда, например, CS_RespawnPlayer, то зайдите в API и введите её в поле «Search:». Выше над командой жирным шрифтом будет указано имя модуля, например, «cstrike», и чтобы его подключить, добавьте в самый верх кода #include
Можно я в лс файл кину. Ты сделаешь??
#8 FasT of boni
Можно я в лс файл кину. Ты сделаешь??
Источник
Форум Pawn.Wiki — Воплоти мечту в реальность!: error 017 — Форум Pawn.Wiki — Воплоти мечту в реальность!
- Pawn скриптинг
- Первая помощь
- Проблемы с компилированием
- Правила форума
- Просмотр новых публикаций
- Группа: Пользователи
- Сообщений: 11
- Регистрация: 15 мая 13
C:Users. 1DownloadsSNK RPGSNKgamemodesSNKland.pwn(6147) : error 017: undefined symbol «SNKland»
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Как исправить?
Мод писал не с 0:D
- Группа: Активные пользователи
- Сообщений: 359
- Регистрация: 02 июня 12
Сообщение отредактировал VistigoN: 28 мая 2013 — 16:09
- Группа: Пользователи
- Сообщений: 11
- Регистрация: 15 мая 13
C:Users. 1DownloadsSNKlandSNKlandgamemodesSNKland. pwn(6148) : error 035: argument type mismatch (argument 1)
C:Users. 1DownloadsSNKlandSNKlandgamemodesSNKland. pwn(29486) : warning 203: symbol is never used: «SNKland»
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
29486 Вобще строчки нет такой О_о
Сообщение отредактировал weZZy: 28 мая 2013 — 16:37
Источник
Форум Pawn.Wiki — Воплоти мечту в реальность!: error 017: undefined symbol «pc_cmd_gnews» — Форум Pawn.Wiki — Воплоти мечту в реальность!
- Pawn скриптинг
- Первая помощь
- Проблемы с компилированием
- Правила форума
- Просмотр новых публикаций
- Группа: Пользователи
- Сообщений: 3
- Регистрация: 17 ноября 19
всё уже пробовал, понятия не имею, что не так.
case 21:
<
if(response)
<
if(strlen(inputtextsave)==0) return callcmd::gnews(playerid,»»);
new/> new text1, text2, text3[32], time[32];
sscanf(inputtextsave,»p dds[32]»,text1,text2,text3);
format(time,sizeof(time),»%d:%d»,text1,text2);
SobesStatus[id]=1;
SetString(SobesTime[id],time);
SetString(SobesMesto[id],text3);
SobesTime1[id]=text1;
SobesTime2[id]=text2;
format(string,sizeof(string),»[D] %s %s[%d] — Íàçíà÷èë ñîáåñåäîâàíèå â ñâîþ îðãàíèçàöèþ íà %s!»,GetRankName(id,PlayerInfo[playerid][pRank]),PN(playerid),playerid,time);
SendGosMessage(COLOR_DEPAR,string);
// SobesMesto[0]=text3;
/*format(string,sizeof(string),»%d %d %s»,text1,text2,text3);
SendClientMessage(playerid,-1,string);*/
>
>
C:UsersDraiDenDesktopÎñíî& #226;à2gamemodesarbiterp.pwn(40420) : error 017: undefined symbol «pc_cmd_gnews»
Pawn compiler 3.2.3664 Copyright © 1997-2016, ITB CompuPhase
- Группа: Активные пользователи
- Сообщений: 827
- Регистрация: 25 июля 16
- Группа: Vip
- Сообщений: 4 729
- Регистрация: 14 марта 12
- Группа: Пользователи
- Сообщений: 3
- Регистрация: 17 ноября 19
McDowell (18 ноября 2019 — 16:46) писал:
if(strlen(inputtextsave)==0) return callcmd::gnews(playerid,»»);
DeimoS (18 ноября 2019 — 16:49) писал:
есть
CMD:gnews(playerid)
<
if(!IsAtFrakcia(playerid)) return false;
if(PlayerInfo[playerid][pRank] 0) return SendClientMessage(playerid, 0xAFAFAFFF, !»[Ошибка] У Вас бан чата!»);
ShowPlayerDialogEx(playerid,5000,1,»»,»
Укажите <98bc5e>время на которое хотите назначить собеседование!nn
Напишите часы, минуты и местоположение через запятую!nn
Пример:[ 19,20,Военкомат ]»,»Принять»,»Отмена»);
/* new mesto[64],vremya[16];
if(sscanf(params,»s[64]s[16]»,mesto,vremya))
<
if(strlen(mesto) == 0)
<
SendClientMessage(playerid, 0xAFAFAFFF, !»[Используй]: /gnews [место назначения] [время начала собеседования]»);
SendClientMessage(playerid, 0xAFAFAFFF, !»Если вы хотите начать собеседование прямо сейчас то оставьте строку времени пустой»);
return true;
>
>*/
/* new fracname[32];
switch(PlayerInfo[playerid][pMember])
<
case 1: fracname = «LSPD»;
case 23: fracname = «LVPD»;
case 6: fracname = «Правительство»;
case 4: fracname = «SFPD»;
case 5: fracname = «Больница LS»;
case 21: fracname = «Центральный банк»;
case 20: fracname = «Армия LS»;
case 9: fracname = «Лицензеры»;
case 10: fracname = «Radio LS»;
case 24: fracname = «Radio LV»;
case 26: fracname = «Radio SF»;
case 27: fracname = «Армия SF»;
case 22: fracname = «Больница LV»;
case 7: fracname = «Армия LV»;
>
new
string[56 — 2 + 26];
format(string, sizeof(string), «[ %s ] Уважаемые жители штата! Минотучку внимания.», fracname);
SendClientMessageToAll(COLOR_GOV, string);
format(string, sizeof(string), «В данный момент проходит собеседование в организацию %s!», fracname);
SendClientMessageToAll(COLOR_GOV, string);
format(string, sizeof(string), «Для вступления необходимо прибыть в %s», params);
SendClientMessageToAll(COLOR_GOV, string);
SendClientMessageToAll(-1, !» «);
SendClientMessageToAll(-1, !» «);*/
return 1;
>
Источник