mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 17:58:16 +08:00
[server] Implement and match n_SetGameModeText(...)
This commit is contained in:
1 parent
6996d316e6
commit
7767dc226c
1 file changed
+7
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user