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



Не найдено.

6 posts in this topic

Доброго дня. На Capital RP, или же Simple RP, при входе на экран пишет WELCOME TO CAPITAL ROLE PLAY
WELCOME TO - белый , CAPITAL ROLE PLAY - Фиолетовый.

Хотелось бы поинтересоваться, как бы такое сделать? За ранее спасибо.

Share this post


Link to post
Share on other sites

Используйте GameTextForPlayer при подключении игрока
 

т.е в OnPlayerConnect:
 

GameTextForPlayer(playerid, "~цвет~Welcome ~цвет~to ~цвет~Capital Role Play", 5000, 3);

 

Share this post


Link to post
Share on other sites

туда вставлять 0xFFFFFFff? 
Или просто #FFFFFF ?

 

Вставил в OnPlayerConnect в начало, ошибки - 

Цитата

C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\pawno\include\foreach.inc(1167) : warning 219: local variable "slot" shadows a variable at a preceding level
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5308) : error 055: start of function body without function header
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5312) : error 010: invalid function or declaration
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5316) : error 010: invalid function or declaration
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5318) : error 021: symbol already defined: "CreateTextDraw"
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5320) : error 021: symbol already defined: "RemoveBuildingForPlayer"
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5332) : error 021: symbol already defined: "RemoveBuildingForPlayer"
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5339) : error 021: symbol already defined: "RemoveBuildingForPlayer"
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5341) : error 021: symbol already defined: "RemoveBuildingForPlayer"
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5346) : error 021: symbol already defined: "RemoveBuildingForPlayer"
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5541) : error 021: symbol already defined: "RemoveBuildingForPlayer"
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5551) : error 021: symbol already defined: "RemoveBuildingForPlayer"
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5555) : error 021: symbol already defined: "RemoveBuildingForPlayer"
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5559) : error 021: symbol already defined: "RemoveBuildingForPlayer"
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5567) : error 021: symbol already defined: "format"
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5589) : error 010: invalid function or declaration
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5603) : error 010: invalid function or declaration
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5605) : error 010: invalid function or declaration
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5607) : error 010: invalid function or declaration
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5610) : error 010: invalid function or declaration
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5613) : error 054: unmatched closing brace ("}")
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5616) : error 010: invalid function or declaration
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5618) : error 021: symbol already defined: "format"
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5619) : error 010: invalid function or declaration
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5621) : error 010: invalid function or declaration
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5627) : error 010: invalid function or declaration
C:\Users\admin\Desktop\Íîâàÿ ïàïêà\mod\gamemodes\edit.pwn(5630) : error 010: invalid function or declaration

Compilation aborted.

Pawn compiler 3.2.3664              Copyright (c) 1997-2017, ITB CompuPhase


26 Errors.
 

 

Share this post


Link to post
Share on other sites

@Neu3BecTeH Как вставил, покажи код.

Share this post


Link to post
Share on other sites

GameTextForPlayer(playerid, "~n~Welcome~n~ ~n~to ~r~ ~r~]ROSTOV ROLE PLAY]", 18000, 4);

Share this post


Link to post
Share on other sites
В 07.09.2019 в 20:48, Neu3BecTeH сказал:

Вставил в OnPlayerConnect в начало, ошибки - 

 

Возможно пропустил где-то }

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • .037
      By .037
      в чём может быть проблема? Передаю строку через PR_String, и получаю с клиента бред
      CMD:TestData(playerid, params[]){ new msg[] = "Code_Test"; new BitStream:bs = BS_New(); BS_WriteInt8(bs,30); BS_WriteFloat(bs,0.9); BS_WriteFloat(bs,23.4); BS_WriteString(bs, msg, sizeof msg); PR_SendRPC(bs, playerid, 179); BS_Delete(bs); return 1; } [05:57:27] RPC - Длина  30 | 0.900000 | 23.400000 | I*(!@dp
      И всегда текст разный 

      Хотя принимаю всё нормально:

       
      bool CALLBACK Hok_RPC_BYTE(stRakNetHookParams *params) { if (params->packetId == 179) { SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0xAA, 0), "Кастомный RPC работает!!!"); byte nameLen; float test; float test1; char szPlayerName[100]; params->bitStream->ResetReadPointer(); params->bitStream->Read(nameLen); params->bitStream->Read(test); params->bitStream->Read(test1); params->bitStream->Read(szPlayerName, 100); params->bitStream->ResetReadPointer(); SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0xAA, 0), "RPC - Длина %d | %f | %f | %s", nameLen, test , test1, szPlayerName); } return true; };