Senya Kolymbijskij

Система погони - /pursuit ошибки

Рекомендованные сообщения



Не найдено.

22 posts in this topic

Спойлер

C:\gamemodes\new.pwn(6754) : error 017: undefined symbol "SCM"
C:\gamemodes\new.pwn(6766) : error 017: undefined symbol "SCM"
C:\gamemodes\new.pwn(6775) : error 017: undefined symbol "SCM"
C:\gamemodes\new.pwn(6785) : error 017: undefined symbol "SCM"
C:\gamemodes\new.pwn(7864) : error 017: undefined symbol "SCM"
C:\gamemodes\new.pwn(7872) : error 017: undefined symbol "SCM"
C:\gamemodes\new.pwn(7904) : error 017: undefined symbol "SCM"
C:\gamemodes\new.pwn(7910) : error 017: undefined symbol "SCM"
C:\gamemodes\new.pwn(7943) : error 017: undefined symbol "SCM"
C:\gamemodes\new.pwn(8005) : error 017: undefined symbol "SCM"
C:\gamemodes\new.pwn(8012) : error 017: undefined symbol "SCM"
C:\gamemodes\new.pwn(8027) : error 017: undefined symbol "SCM"
C:\gamemodes\new.pwn(8033) : error 017: undefined symbol "SCM"
C:\gamemodes\new.pwn(8048) : error 017: undefined symbol "SCM"
C:\gamemodes\new.pwn(8062) : error 017: undefined symbol "SCM"
C:\gamemodes\new.pwn(8102) : error 017: undefined symbol "SCM"
C:\gamemodes\new.pwn(8125) : error 017: undefined symbol "SCM"
C:\gamemodes\new.pwn(8132) : error 017: undefined symbol "SCM"
C:\gamemodes\new.pwn(8267) : error 017: undefined symbol "SCM"
C:\gamemodes\new.pwn(8275) : error 017: undefined symbol "SCM"
C:\gamemodes\new.pwn(8294) : error 017: undefined symbol "SCM"
C:\gamemodes\new.pwn(8309) : error 017: undefined symbol "SCM"
C:\gamemodes\new.pwn(8312) : error 017: undefined symbol "SCM"
C:\gamemodes\new.pwn(8332) : error 017: undefined symbol "SCM"
C:\gamemodes\new.pwn(8335) : error 017: undefined symbol "SCM"
C:\gamemodes\new.pwn(8382) : error 017: undefined symbol "SCM"

 

такие ошибки что делать???

@mr_sasha087 @DEST Помогите!!

Это строки  там где  SendClientMessage есть @mr_sasha087 @DEST Помогите!!

@odosenok

Edited by odosenok

Заметка от DEST , создано

Вынес в отдельную тему

Share this post


Link to post
Share on other sites

@Senya Kolymbijskij замените SCM на SendClientMessage

Share this post


Link to post
Share on other sites

@keyl Так там не SCM  там SendClientMessage  в строках там где ошибка

 

Share this post


Link to post
Share on other sites

@Senya Kolymbijskij К дефайнам добавь вот это

#define 	SCM		SendClientMessage

 

Share this post


Link to post
Share on other sites

@Умелец Это вместо чего поставить?

 

@Умелец Вставил ваш код  вместо #define SendClientMesseage SCM

C:\gamemodes\new.pwn(299) : error 021: symbol already defined: "SendClientMessage"
C:\gamemodes\new.pwn(21119) : warning 219: local variable "name" shadows a variable at a preceding level
C:\gamemodes\new.pwn(21120) : error 035: argument type mismatch (argument 2)
C:\gamemodes\new.pwn(21120) : error 029: invalid expression, assumed zero
C:\gamemodes\new.pwn(21120) : warning 215: expression has no effect
C:\gamemodes\new.pwn(21119) : warning 204: symbol is assigned a value that is never used: "name"
C:\gamemodes\new.pwn(58668) : error 017: undefined symbol "PLAYER_DATA"
C:\gamemodes\new.pwn(58668) : warning 215: expression has no effect
C:\gamemodes\new.pwn(58668) : error 001: expected token: ";", but found "]"
C:\gamemodes\new.pwn(58668) : error 029: invalid expression, assumed zero
C:\gamemodes\new.pwn(58668) : fatal error 107: too many error messages on one line

вот ошибки.

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

@Senya Kolymbijskij поищи можете у тебя есть ещё дефайн SCM 

Share this post


Link to post
Share on other sites

@Умелецнету такого

Share this post


Link to post
Share on other sites

@Senya Kolymbijskij Значит удали этот дефайн и покажи ошибки какие будут!

Share this post


Link to post
Share on other sites

@Умелец 

C:\gamemodes\new.pwn(21103) : error 012: invalid function call, not a valid address
C:\gamemodes\new.pwn(21103) : warning 215: expression has no effect
C:\gamemodes\new.pwn(21103) : warning 215: expression has no effect
C:\gamemodes\new.pwn(21103) : warning 215: expression has no effect
C:\gamemodes\new.pwn(21103) : error 001: expected token: ";", but found ")"
C:\gamemodes\new.pwn(21103) : error 029: invalid expression, assumed zero
C:\gamemodes\new.pwn(21103) : fatal error 107: too many error messages on one line

 

Share this post


Link to post
Share on other sites

@Умелец 

	if(sscanf(params, "d", params[0])) return SCM(playerid, COLOR_WARNING, "USAGE: /pursuit [id]");

 

Share this post


Link to post
Share on other sites

@Senya Kolymbijskij это в команде /ps?, кинь весь код этой команды!

 

 

Edited by Умелец

Share this post


Link to post
Share on other sites

@Умелец 

CMD:ps(playerid, params[])
{
	//ïðîâåðêó íà ôðàêöèþ
	if(sscanf(params, "d", params[0])) return SendClientMessage(playerid, COLOR_WARNING, "USAGE: /pursuit [id]");
	if(GetPVarInt(playerid, "pursuited")) return SendClientMessage(playerid, COLOR_WARNING, "Âû óæå âåäåòå ïîãîíþ! Äëÿ îòìåíû /cancelps");
	if(params[0] == playerid) return SendClientMessage(playerid, COLOR_WARNING, "Íåâîçìîæíî âûïîëíèòü äëÿ ñàìîãî ñåáÿ!");
	if(GetPVarInt(playerid, "paf") > gettime()) return SendClientMessage(playerid, COLOR_WARNING, "Ìîæíî èñïîëüçîâàòü ðàç â 10 ñåêóíä!");
	if(!IsPlayerConnected(params[0])) return SendClientMessage(playerid, COLOR_WARNING, "Èãðîê íå ïîäêëþ÷åí!");
	new Float:x, Float:y, Float:z;
	GetPlayerPos(params[0], x, y, z);
	if(GetPlayerDistanceFromPoint(playerid, x, y, z) > 30) return SendClientMessage(playerid, COLOR_WARNING, "Âû ñëèøêîì äàëåêî îò ïðèñëåäóåìîãî! (áîëåå 30ì)");


	SetPVarInt(params[0], "pursuit", 1);
	SetPVarInt(playerid, "pursuited", params[0]);
	SendClientMessage(params[0], COLOR_WARNING, "[ÂÍÈÌÀÍÈÅ!] Çà âàìè íà÷àëè ïîãîíþ ïîëèöåéñêèå. Åñëè âû âûéäèòå èç èãðû, âû àâòîìàòè÷åñêè ïîïàäåòå â ÊÏÇ!");
	static const fmt_str[] = "[Dispatch Police] Çà âàìè íà÷àë ïîãîíþ ïîëèöåéñêèé %s[%d]";
	PlayCrimeReportForPlayer(playerid, params[0], 3);
	new name[MAX_PLAYER_NAME];
	GetPlayerName(playerid, name, MAX_PLAYER_NAME];
	new str[sizeof(fmt_str)+MAX_PLAYER_NAME+12];
	format(str, sizeof(str), fmt_str, name, playerid);
	SendClientMessage(params[0], COLOR_WARNING, str);
	SendClientMessage(playerid, COLOR_WARNING, "Âû íà÷àëè ïîãîíþ çà ïîäîçðåâàåìûì. Îñòàâàéòåñü â ðàäèóñå 70 ì, èíà÷å ïîãîíÿ áóäåò ïðåêðàùåíà!");
	SetPVarInt(playerid, "paf", gettime()+10);

	PursuitTimer[playerid] = SetTimerEx("TimerPursuit", 1000*3, true, "ii", playerid, params[0]);

	return true;
}

 

@Умелец 


CMD:cancelps(playerid)
{
	//ïðîâåðêà íà ôðàêöèþ
	if(!GetPVarInt(playerid, "pursuited")) return SendClientMessage(playerid, COLOR_WARNING, "Âû íèêîãî íå ïðèñëåäîâàëè! Äåéñòâèå íåâîçìîæíî!");

	SendClientMessage(GetPVarInt(playerid, "pursuited"), COLOR_WARNING, "Ïîãîíÿ çà âàìè ïðåêðàùåíà!");
	SendClientMessage(playerid, COLOR_WARNING, "Ïîãîíÿ ïðåêðàùåíà!");
	DeletePVar(GetPVarInt(playerid, "pursuited"), "pursuit");
	DeletePVar(playerid, "pursuit");
	DeletePVar(playerid, "paf");

	return true;
}

это отмена погони

Share this post


Link to post
Share on other sites

Приветствую, @Senya Kolymbijskij.

На какие именно строки выдаёт ошибки? Укажите их, или скиньте отдельно.

Share this post


Link to post
Share on other sites

@Senya Kolymbijskij Screenshot_94.thumb.png.eb799d6a70d8ad9a8251d1f196ac520a.png

GetPlayerName(playerid, name, MAX_PLAYER_NAME);

Share this post


Link to post
Share on other sites

TS Posted (edited) · Report post

@Умелец  а спасибо,понял)))

@Умелец Исправил.....ругается

C:\gamemodes\new.pwn(21118) : warning 219: local variable "name" shadows a variable at a preceding level
C:\gamemodes\new.pwn(21119) : error 035: argument type mismatch (argument 2)
C:\gamemodes\new.pwn(21118) : warning 204: symbol is assigned a value that is never used: "name"
C:\gamemodes\new.pwn(58668) : error 001: expected token: ";", but found "-identifier-"
C:\gamemodes\new.pwn(58668) : error 028: invalid subscript (not an array or too many subscripts): "PLAYER_DATA"
C:\gamemodes\new.pwn(58668) : warning 215: expression has no effect
C:\gamemodes\new.pwn(58668) : error 001: expected token: ";", but found "]"
C:\gamemodes\new.pwn(58668) : fatal error 107: too many error messages on one line

вот строки там где  ошибки-21119,21118

new name[MAX_PLAYER_NAME];
	GetPlayerName(playerid, name, MAX_PLAYER_NAME);

и вот 58668

  PLAYER_DATA[playerid][data_JAIL] = 1;

 

Edited by Senya Kolymbijskij

Share this post


Link to post
Share on other sites

@Senya Kolymbijskij 1.У тебя уже есть объявление переменной new name[MAX_PLAYER_NAME];
2.Покажи весь паблик где у тебя строка 58668

Edited by Умелец

Share this post


Link to post
Share on other sites

@Умелец 

public OnPlayerDisconnect ( playerid, reason )
{
	#if defined debug_mode
		printf ( "[DEBUG] [OnPlayerDisconnect] playerid:%d | reason:%d", playerid, reason ) ;
	#endif

	if(GetPVarInt(playerid, "Registration") == 1) clear_td_registration(playerid);
	if(GetPVarInt(playerid, "Autorization") == 1) clear_td_autorization(playerid);
	if(GetPVarInt(playerid, "show_pass") == 1)
	{
		for(new i = 0; i < 39; i++)
		{
		    PlayerTextDrawDestroy(playerid, Passport_PTD[playerid][i]);
		    Passport_PTD [ playerid ] [ i ] = PlayerText:-1 ;

			if(i < 6) TextDrawHideForPlayer(playerid, Passport_TD[i]);
		}
		DeletePVar(playerid, "show_pass");
	}
	if(GetPVarInt(playerid, "pursuit") == 1)
	{
	new  PLAYER_DATA
  	/* ÄÀÍÍÛÅ ÔÓÍÊÖÈÈ ÇÀÌÅÍÈÒÜ ÍÀ ÑÂÎÈ, ÎÁÍÓËÅÍÈÅ ÐÎÇÛÑÊÀ À ÒÀÊÆÅ ÂÛÄÀ×À ÒÞÐÜÌÛ. 3600 - ÝÒÎ ÂÐÅÌß, 60 ìèíóò*/
    PLAYER_DATA[playerid][data_JAIL] = 1;
    PLAYER_DATA[playerid][data_JAILTIME] = 3600;
    PLAYER_DATA[playerid][data_WANTED] = 0;
  	/*ÊÎÍÅÖ ÇÀÌÅÍÛ ÎÑÒÀËÜÍÎÅ ÂÑÅ ÌÎÆÍÎ ÎÑÒÀÂÈÒÜ*/
    static const fmt_str[] = "%s áûë ïîñàæåí â êïç íà 60 ìèíóò. Ïðè÷èíà: âûõîä ïðè ïîãîíå";
    new text[sizeof(fmt_str)+MAX_PLAYER_NAME], names[MAX_PLAYER_NAME];
    GetPlayerName(playerid, names, MAX_PLAYER_NAME];
    format(text,sizeof(text),fmt_str, names);
    SendClientMessageToAll(-1,text);
	}

 

Share this post


Link to post
Share on other sites

@Senya Kolymbijskij убери 

new  PLAYER_DATA

 

Share this post


Link to post
Share on other sites

@Senya Kolymbijskij 1.Убери 

new  PLAYER_DATA

2.Поищи в моде у себя 

enum PLAYER_DATA
{
	
}

3.Если нету то создай

enum PLAYER_DATA
{
	data_JAIL,
	data_JAILTIME,
  	data_WANTED
  
}
new pInfo[MAX_PLAYERS][PLAYER_DATA];

4. Замени это:

PLAYER_DATA[playerid][data_JAIL] = 1;
PLAYER_DATA[playerid][data_JAILTIME] = 3600;
PLAYER_DATA[playerid][data_WANTED] = 0;

На это:

pInfo[playerid][data_JAIL] = 1;
pInfo[playerid][data_JAILTIME] = 3600;
pInfo[playerid][data_WANTED] = 0;

 

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   You have pasted content with formatting.   Remove formatting

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • Roman_Zimin
      By Roman_Zimin
      Продам мод Friendly Role Play собственной доработки.
       
      Ознакомится с данным модом вы можете по ссылке (Скриншоты мои): https://yapx.ru/v/LqMCI
       
      за дополнительными скриншотами и информацией вы можете обратится по ссылке ниже.
       
      Так же были добавлены 3д интерьеры а именно:
      1- инта гибдд-ппс
      2- инта фсб
      3- инта ОПГ 2-шт
      4- инта Правительство
      5- инта Гараж
      6- инта Армия
      7- инта Подъезд
      8- квартира среднего класса
       
      Ссылка для свзяи,  доп.информации и доп.скриншотов:
    • Roman_Zimin
      By Roman_Zimin
      Friendly Role Play - Мод под открытие
      Просмотр файла Продам мод Friendly Role Play собственной доработки.
       
      Ознакомится с данным модом вы можете по ссылке (Скриншоты мои): https://yapx.ru/v/LqMCI
       
      за дополнительными скриншотами и информацией вы можете обратится по ссылке ниже.
       
      Так же были добавлены 3д интерьеры а именно:
      1- инта гибдд-ппс
      2- инта фсб
      3- инта ОПГ 2-шт
      4- инта Правительство
      5- инта Гараж
      6- инта Армия
      7- инта Подъезд
      8- квартира среднего класса
       
      Ссылка для свзяи,  доп.информации и доп.скриншотов:
      Добавил Roman_Zimin Добавлено 30.03.2021 Категория Моды Автор Friendly  
    • GhostWill
      By GhostWill
      Первый способ с админ проверкой:
      public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) { if(pInfo[playerid][admin] != 0) return 1; SetPlayerPos(playerid,fX,fY,fZ); return 1; } Второй способ без проверки на админку:
      public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) { return SetPlayerPos(playerid,fX,fY,fZ); }