mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[server] Implement and match n_SetGameModeText(...)
This commit is contained in:
parent
6996d316e6
commit
7767dc226c
@ -287,9 +287,15 @@ static cell AMX_NATIVE_CALL n_GameModeExit(AMX *amx, cell *params)
|
||||
return 0;
|
||||
}
|
||||
|
||||
// native SetGameModeText(const string[])
|
||||
static cell AMX_NATIVE_CALL n_SetGameModeText(AMX *amx, cell *params)
|
||||
{
|
||||
// TODO: SetGameModeText
|
||||
CHECK_PARAMS(1);
|
||||
|
||||
char* szGameModeText;
|
||||
amx_StrParam(amx, params[1], szGameModeText);
|
||||
pConsole->SetStringVariable("gamemodetext", szGameModeText);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user