Иконка ресурса

Most Valuable Player ( MVP ) 2.8.0

Нет прав для скачивания
Сообщения
3,593
Реакции
1,576
Помог
141 раз(а)
RG_CSGameRules_ClientUserInfoChanged
->
RG_CBasePlayer_SetClientUserInfoName
 
Сообщения
99
Реакции
75
Помог
1 раз(а)
RG_CSGameRules_ClientUserInfoChanged
->
RG_CBasePlayer_SetClientUserInfoName
It does the same thing as RG_CSGameRules_ClientUserInfoChanged but you have the param for the new name, it doesn't help too much, because I still need to check for the "name" field in userinfo:

Код:
public RG_ClientUserInfoChanged_Post(id, infobuffer[])
{
    if(containi(infobuffer, "name") != -1)
    {
        if(g_iSaveInstant)
        {
            SavePlayerData(id)
        }

        copyc(g_szName[id], charsmax(g_szName[]), infobuffer[containi(infobuffer, "name") + 5], '\')

        LoadPlayerData(id)
    }
}
}
->
Код:
public RG_CBasePlayer_SetClientUserInfoName_Post(id, infobuffer[], szNewName[])
{

        if(containi(infobuffer, "name") != -1)
        {
                if(g_iSaveInstant)
                {
                    SavePlayerData(id)
                }
                copy(g_szName[id], charsmax(g_szName[]), szNewName)

                LoadPlayerData(id)
        }
}
 
Сообщения
673
Реакции
242
Помог
11 раз(а)
I would recommend using an asynchronous request if you do not want to get freezes on the server when you request
 
Сообщения
99
Реакции
75
Помог
1 раз(а)
I would recommend using an asynchronous request if you do not want to get freezes on the server when you request
I know, but I want to retrieve needed data instantly, using SQL_Execute() not SQL_ThreadQuery(). And SQL_ThreadQuery() can fail sometimes due it's thread worker which seems buggy sometimes.
 
Сообщения
673
Реакции
242
Помог
11 раз(а)
Shadows Adi,
I don't see anything by the code that instant data is required, the difference in receiving is in milliseconds (0.00003 ms)
 
Последнее редактирование:
Сообщения
3,593
Реакции
1,576
Помог
141 раз(а)

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу