Raised This Month: $12 Target: $400
 3% 

vs code include problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alex2001
Member
Join Date: May 2019
Old 06-20-2019 , 09:45   vs code include problem
Reply With Quote #1

hi,some inc work fine but oher no..why

CGOPrintToChatAll/CGOPrintToChat dosent appear
https://imgur.com/a/xL8ogKi
and this work
https://imgur.com/a/SKjWHq9

Last edited by alex2001; 06-20-2019 at 09:45.
alex2001 is offline
CrazyHackGUT
AlliedModders Donor
Join Date: Feb 2016
Location: Izhevsk, Russia
Old 06-21-2019 , 04:44   Re: vs code include problem
Reply With Quote #2

From what thread you downloaded this include?
And what extension you used?
__________________
My english is very bad. I am live in Russia. Learning english language - very hard task for me...
CrazyHackGUT is offline
Send a message via ICQ to CrazyHackGUT Send a message via Skype™ to CrazyHackGUT
alex2001
Member
Join Date: May 2019
Old 06-22-2019 , 08:52   Re: vs code include problem
Reply With Quote #3

csgo_colors.inc.
and extensuon sp.. autocomplet work with other inc but with this dosen t.

Quote:
/********************************************* *****************************
* CS:GO COLORS *
* Автор: Феникс(komashchenko) *
* Version: 1.6 *
* http://zizt.ru/ http://hlmod.ru/ *
* 03.07.2014 - V1.0: Релиз *
* 13.10.2014 - V1.1: Обнова *
* 24.10.2014 - V1.2: Обнова *
* 17.11.2014 - V1.3: Исправление ошибок *
* 23.12.2015 - V1.4: Исправление ошибок, Обнова *
* 02.12.2018 - V1.5: Немного переработал, убрал лишнее *
* 04.12.2018 - V1.6: Исправление ошибки с файлами перевода *
********************************************* *****************************/

#define ZCOLOR 14
static char g_sBuf[2048];

static const char color_t[ZCOLOR][] = {"{DEFAULT}", "{RED}", "{LIGHTPURPLE}", "{GREEN}", "{LIME}", "{LIGHTGREEN}", "{LIGHTRED}", "{GRAY}", "{LIGHTOLIVE}", "{OLIVE}", "{LIGHTBLUE}", "{BLUE}", "{PURPLE}", "{GRAYBLUE}"},
color_c[ZCOLOR][] = {"\x01", "\x02", "\x03", "\x04", "\x05", "\x06", "\x07", "\x08", "\x09", "\x10", "\x0B", "\x0C", "\x0E", "\x0A"};


stock void CGOPrintToChat(int iClient, const char[] message, any ...)
{
SetGlobalTransTarget(iClient);
VFormat(g_sBuf, sizeof g_sBuf, message, 3);

int iLastStart = 0, i = 0;
for(; i < ZCOLOR; i++)
{
ReplaceString(g_sBuf, sizeof g_sBuf, color_t[i], color_c[i], false);
}

i = 0;

while(g_sBuf[i])
{
if(g_sBuf[i] == '\n')
{
g_sBuf[i] = 0;
PrintToChat(iClient, " %s", g_sBuf[iLastStart]);
iLastStart = i+1;
}

i++;
}

PrintToChat(iClient, " %s", g_sBuf[iLastStart]);
}

stock void CGOPrintToChatAll(const char[] message, any ...)
{
int iLastStart = 0, i = 0;

for (int iClient = 1; iClient <= MaxClients; iClient++) if(IsClientInGame(iClient) && !IsFakeClient(iClient))
{
SetGlobalTransTarget(iClient);
VFormat(g_sBuf, sizeof g_sBuf, message, 2);

for(i = 0; i < ZCOLOR; i++)
{
ReplaceString(g_sBuf, sizeof g_sBuf, color_t[i], color_c[i], false);
}

iLastStart = 0, i = 0;

while(g_sBuf[i])
{
if(g_sBuf[i] == '\n')
{
g_sBuf[i] = 0;
PrintToChat(iClient, " %s", g_sBuf[iLastStart]);
iLastStart = i+1;
}

i++;
}

PrintToChat(iClient, " %s", g_sBuf[iLastStart]);
}
}

stock void CGOReplaceColorSay(char[] text, int maxlength)
{
for(int i = 0; i < ZCOLOR; i++)
{
ReplaceString(text, maxlength, color_t[i], color_c[i], false);
}
}

stock void GOPrintToChat(int iClient, const char[] message, any ...)
{
SetGlobalTransTarget(iClient);
VFormat(g_sBuf, sizeof g_sBuf, message, 3);

int iLastStart = 0, i = 0;

while(g_sBuf[i])
{
if(g_sBuf[i] == '\n')
{
g_sBuf[i] = 0;
PrintToChat(iClient, " %s", g_sBuf[iLastStart]);
iLastStart = i+1;
}

i++;
}

PrintToChat(iClient, " %s", g_sBuf[iLastStart]);
}

stock void GOPrintToChatAll(const char[] message, any ...)
{
int iLastStart = 0, i = 0;

for (int iClient = 1; iClient <= MaxClients; iClient++) if(IsClientInGame(iClient) && !IsFakeClient(iClient))
{
SetGlobalTransTarget(iClient);
VFormat(g_sBuf, sizeof g_sBuf, message, 2);

iLastStart = 0, i = 0;

while(g_sBuf[i])
{
if(g_sBuf[i] == '\n')
{
g_sBuf[i] = 0;
PrintToChat(iClient, " %s", g_sBuf[iLastStart]);
iLastStart = i+1;
}

i++;
}

PrintToChat(iClient, " %s", g_sBuf[iLastStart]);
}
}

Last edited by alex2001; 06-22-2019 at 08:53.
alex2001 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode