10 posts in this topic

Здравствуйте, подскажите пожалуйста как SetVehicleNumberPlate поставить на CMD?

Я пробовал:

new vehicleid = CreateVehicle(542, 2074.73, 1089.89, 10.51, 0.0, -1, -1, -1);
SetVehicleNumberPlate(vehicleid, "pawn-wiki");

Вылизает ошибка:

Спойлер

../include/system/vehicle.pwn(325) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
../include/system/vehicle.pwn(413) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
../include/system/vehicle.pwn(452) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
../include/system/vehicle.pwn(467) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
../include/system/vehicle.pwn(473) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
../include/system/vehicle.pwn(491) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
../include/system/vehicle.pwn(500) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
../include/system/vehicle.pwn(512) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
../include/antigoc.inc(1) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
../include/antigoc.inc(8) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(580) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(626) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(2354) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(5506) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(6453) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(6566) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(6619) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(6708) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(6755) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(6768) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(6775) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(6785) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(7106) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(7216) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(7346) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(7773) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(8266) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(8467) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(8653) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(8660) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(8667) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(9208) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(9590) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(9595) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(10964) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(12656) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(12680) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(12719) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(12740) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(12796) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(12831) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(12855) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(12905) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(13658) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(13736) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(14243) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(16130) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(16167) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(16295) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(16424) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(16463) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(16496) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(16568) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(16615) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(16722) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(17340) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(19086) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(19117) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(20387) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(20463) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(20544) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(20589) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(20616) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(20647) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(21168) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(21863) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(22320) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(22399) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(23336) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(24056) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(24185) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(24200) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(24245) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(24287) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(24307) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(24322) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(24372) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(24416) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(24431) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(24459) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(24504) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(24524) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(24537) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(24596) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(24610) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(24622) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(24637) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(25819) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(26101) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(26122) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(26435) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(26888) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(26976) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(27800) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(27872) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(29501) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(32490) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(32534) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(32736) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(32889) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(33389) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(33428) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(33443) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(33458) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(33478) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(33497) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(33587) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(33592) : symbol is never used: "TODO"
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(33640) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(33707) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(33806) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(33849) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(33890) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(33960) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(35711) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(35857) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(35933) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(35993) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(36872) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(38016) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(38358) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(38381) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(38969) : symbol is never used: "TODO_THIS"
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(39057) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(39133) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(39172) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(39208) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(39249) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(39300) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(39340) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(39403) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(39518) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(40617) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(41503) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(42130) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(42165) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(42212) : warning 219: local variable "vehicleid" shadows a variable at a preceding level
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(42367) : error 001: expected token: ";", but found "-integer value-"
C:\Users\Коля\Desktop\RADMIR RP\pawno\gamemodes\new.pwn(42367) : symbol is never used: "vehicleid"
Pawn compiler 3.2.3664              Copyright (c) 1997-2016, ITB CompuPhase


1 Error.

 


Помогите пожалуйста! 

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

3.1. Заголовок темы должен отражать основную суть темы. Темы без информативного заголовка будут переименовываться, а автор может быть предупрежден (на усмотрение члена администрации).

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

3.2. Код больше 10 строк брать еще и под спойлер. Как это сделать рассказано в разделе "FAQ"

Share this post


Link to post
Share on other sites

@rolz Pro YouTube а вы этот код где пишете? 

Share this post


Link to post
Share on other sites

@rolz Pro YouTube, также хочу напомнить, что необходимо заново спавнить транспорт, на котором Вы изменяете номерной знак, чтобы изменения вступили в силу.

Share this post


Link to post
Share on other sites

@DEST Я писал и в конец и в начало. Не где не получается! 

 

@odosenok Про это я знаю! Но при компетоляции ошибка!

 

Если вам не трудно вот мод: https://yadi.sk/d/e4v51-AxqT8rqA

Суда SetVehicleNumberPlate надо на все машины поставить!

Заранее спасибо большое!

Edited by rolz Pro YouTube

Share this post


Link to post
Share on other sites

@rolz Pro YouTube Вы шапку команды забыли, на DC_CMD она будет такой:

CMD:setvehnumplate(playerid)
{
	// код команды
	return 1;
}

 

Share this post


Link to post
Share on other sites

@DEST А как сделать что-бы на всех машинах сразу при включение сервера срабатывало, не через команду...

Share this post


Link to post
Share on other sites

OnGameModeInit вызывается после старта игрового мода, можете поместить код с изменением табличек для статических машин туда. Если нужно менять номер на машине, который хранится в БД, то помещать этот код необходимо в загрузку. 

Share this post


Link to post
Share on other sites

А где находится OnGameModeInit и как туда перейти? Давай я весь мод скину и  вы (если не трудно) сами сделаете? Пожалуйста...

Мод: https://yadi.sk/d/9cD4VJ2jGtVRjQ

Share this post


Link to post
Share on other sites

@rolz Pro YouTube Обращайтесь в раздел "Стол заказов". 

Share this post


Link to post
Share on other sites

АВТОМАТИЧЕСКИ СФОРМИРОВАННОЕ СООБЩЕНИЕ:

Данная тема была перемещена модерацией или администрацией портала PAWNO-RUS.RU! 

Перемещена из: "Criminal Russia Multiplayer (CRMP) - РАЗРАБОТКИ > Команды (CMD)"

Перемещена в: "Прочее > Архив"

 

С уважением, ваш Бот! 

Если вы НЕ согласны с переносом данной темы в раздел "Прочее > Архив", пожалуйтесь на это сообщение в жалобе указав причины вашего недовольства. Спасибо. 

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • Chopick
      By Chopick
      Всем здравствуйте! Делаю систему домов/бизнесов по туториалу knox know с плагином GoodArea. Есть проблема, если заходишь в интерьер бизнеса, то когда выходишь спавнит почему-то на пикап дома.

      Вот енумы:
       
      #define MAX_HOUSES 1000 #define MAX_BIZS 1000 enum house {         hID,         STREAMER_TAG_PICKUP:hPICKUP,         STREAMER_TAG_AREA:hAREA,         hOWNER[MAX_PLAYER_NAME],         STREAMER_TAG_3D_TEXT_LABEL:hTEXT[256],         STREAMER_TAG_MAP_ICON:hICON,         hPRICE,         hCLASS,         hINTERIOR,         Float:hX,         Float:hY,         Float:hZ,         Float:hA,         hCONDITION // Закрыт/Открыт } new House[MAX_HOUSES][house]; new Houses; new HouseGroup; enum biz {         bID,         STREAMER_TAG_PICKUP:bPICKUP,         STREAMER_TAG_AREA:bAREA,         bOWNER[MAX_PLAYER_NAME],         STREAMER_TAG_3D_TEXT_LABEL:bTEXT[256],         STREAMER_TAG_MAP_ICON:bICON,         bNAME[25],         bPRICE,         bTYPE,         bINTERIOR,         Float:bX,         Float:bY,         Float:bZ,         Float:bA } new Biz[MAX_BIZS][biz]; new Bizs; new BizGroup; enum interior_info {         intID,         intNAME[41],         intINTERIOR,         Float:intX,         Float:intY,         Float:intZ,         Float:intA,         STREAMER_TAG_AREA:intAREA } new Interior[MAX_INTERIORS][interior_info]; new Interiors; new InteriorGroup; Вот что у меня в OnGameModeInit:
      HouseGroup = CreateGroupGoodAreas(GoodArea:HouseEnter); InteriorGroup = CreateGroupGoodAreas(GoodArea:InteriorExit); BizGroup = CreateGroupGoodAreas(GoodArea:BizArea);  
      Вот стоки:
      GAResponse:HouseEnter(playerid, response, key, index) {         switch(response)         {             case GA_RESPONSE_PRESS_KEY:             {                 if(key & KEY_WALK)                 {                 if(House[index][hCONDITION] > 0 && House[index][hOWNER] == player_info[playerid][NAME] || House[index][hCONDITION] == 0)                 {                                         GoToInterior(playerid, House[index][hINTERIOR]);                                         SetPlayerVirtualWorld(playerid, index);                                 }                                 else if(House[index][hCONDITION] > 0 && House[index][hOWNER] != player_info[playerid][NAME]) return SCM(playerid, COLOR_RED, "[Ошибка]{ffffff}Этот дом закрыт на ключ!");                         }                 }                 case GA_RESPONSE_ENTER:                 {                     if(House[index][hOWNER] == 0)                     {                         CreateNoOwnerHouseTD(playerid);                         for(new i = 0; i < sizeof NoOwnerTextDraw_PTD[]; i++)                         {                             PlayerTextDrawShow(playerid, NoOwnerTextDraw_PTD[playerid][i]);                                 }                                 new price[8];                                 format(price, sizeof(price), "%d$", House[index][hPRICE]);                                 PlayerTextDrawSetString(playerid, NoOwnerTextDraw_PTD[playerid][2], price);                                 new id[9];                                 format(id, sizeof(id), "%d", House[index][hID]);                                 PlayerTextDrawSetString(playerid, NoOwnerTextDraw_PTD[playerid][0], id);                                 switch(House[index][hCLASS])                                 {                                     case 1: PlayerTextDrawSetString(playerid, NoOwnerTextDraw_PTD[playerid][1], "A");                                     case 2: PlayerTextDrawSetString(playerid, NoOwnerTextDraw_PTD[playerid][1], "B");                                     case 3: PlayerTextDrawSetString(playerid, NoOwnerTextDraw_PTD[playerid][1], "C");                                 }                                 for(new i = 0; i < sizeof NoOwnerTextDraw_TD; i++)                         {                             TextDrawShowForPlayer(playerid, NoOwnerTextDraw_TD[i]);                                 }                         }                 }                 case GA_RESPONSE_LEAVE:                 {                 for(new i = 0; i < sizeof NoOwnerTextDraw_PTD[]; i++)                 {                     PlayerTextDrawHide(playerid, NoOwnerTextDraw_PTD[playerid][i]);                         }                         for(new i = 0; i < sizeof NoOwnerTextDraw_TD; i++)                 {                     TextDrawHideForPlayer(playerid, NoOwnerTextDraw_TD[i]);                         }                 }         }         return 1; } GAResponse:BizArea(playerid, response, key, index) {         switch(response)         {             case GA_RESPONSE_PRESS_KEY:             {                 if(key & KEY_WALK)                 {                     GoToInteriorBiz(playerid, Biz[index][bINTERIOR]);                                 SetPlayerVirtualWorld(playerid, index);                 }                 }         }         return 1; } GAResponse:InteriorExit(playerid, response, key, index) {         switch(response)         {             case GA_RESPONSE_PRESS_KEY:             {                 new world = GetPlayerVirtualWorld(playerid);                 if(key & KEY_WALK)                 {                     if(world < MAX_HOUSES)                     {                         SetPlayerInterior(playerid, 0);                             SetPlayerVirtualWorld(playerid, 0);                             SetPlayerPos(playerid, House[world][hX], House[world][hY], House[world][hZ]);                             SetPlayerFacingAngle(playerid, House[world][hA]);                                 }                                 else if(world < MAX_HOUSES + MAX_BIZS)                     {                         world -= MAX_HOUSES;                                         printf("%d index world", world);                         SetPlayerInterior(playerid, 0);                             SetPlayerVirtualWorld(playerid, 0);                             SetPlayerPos(playerid, Biz[world][bX], Biz[world][bY], Biz[world][bZ]);                             SetPlayerFacingAngle(playerid, Biz[world][bA]);                                 }                         }                         if(key & KEY_CTRL_BACK)                         {                             if(player_info[playerid][HOUSE] != House[world][hID]) return SCM(playerid, COLOR_RED, "[Ошибка]{ffffff}Вы не владелец данного дома!");                             new dialog[256];                                 format(dialog, sizeof(dialog),                                         "{ffd900}[1]{ffffff}Информация о доме\n\                                         {ffd900}[2]{ffffff}%s дом",                                 (House[world][hCONDITION] == 1) ? ("{00ff00}Открыть") : ("{ff0000}Закрыть"));                             SPD(playerid, DLG_HMENU, DIALOG_STYLE_LIST, "{ffd900}Меню дома", dialog, "Выбрать", "Закрыть");                             return 1;                         }                 }         }         return 1; } stock GoToInterior(playerid, interior) {     for(new i = 0; i < Interiors; i++)         {             if(Interior[i][intID] != interior) continue;             SetPlayerInterior(playerid, Interior[i][intINTERIOR]);             SetPlayerPos(playerid, Interior[i][intX], Interior[i][intY], Interior[i][intZ]);             SetPlayerFacingAngle(playerid, Interior[i][intA]);             SetPlayerCheckpoint(playerid, Interior[i][intX], Interior[i][intY], Interior[i][intZ], 1.0);             new str[128];             format(str, sizeof(str),                         "Нажмите \"ALT\" для выхода\n\                         Нажмите \"H\", чтобы открыть меню дома");             Create3DTextLabel(str, -1, Interior[i][intX], Interior[i][intY], Interior[i][intZ], 15.0, 0, 1);             return 1;         }         return 0; } stock GoToInteriorBiz(playerid, interior) {     for(new i = 0; i < Interiors; i++)         {             if(Interior[i][intID] != interior) continue;             SetPlayerInterior(playerid, Interior[i][intINTERIOR]);             SetPlayerPos(playerid, Interior[i][intX], Interior[i][intY], Interior[i][intZ]);             SetPlayerFacingAngle(playerid, Interior[i][intA]);             SetPlayerCheckpoint(playerid, Interior[i][intX], Interior[i][intY], Interior[i][intZ], 1.0);             new str[128];             format(str, sizeof(str),                         "Нажмите \"ALT\" для выхода");             Create3DTextLabel(str, -1, Interior[i][intX], Interior[i][intY], Interior[i][intZ], 15.0, 0, 1);             return 1;         }         return 0; }  
       
      Что мне делать, подскажите пожалуйста?