mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[bot] Fix/match n_IsPlayerConnected(...)
This commit is contained in:
parent
9de4780943
commit
7d46ed86fa
@ -252,7 +252,7 @@ static cell AMX_NATIVE_CALL n_GetPlayerName(AMX *amx, cell *params)
|
||||
static cell AMX_NATIVE_CALL n_IsPlayerConnected(AMX *amx, cell *params)
|
||||
{
|
||||
PLAYERID playerId = (PLAYERID)params[1];
|
||||
if (playerId >= MAX_PLAYERS || pNetGame->GetPlayerPool()->GetSlotState(playerId)) return 0;
|
||||
if (playerId >= MAX_PLAYERS || !pNetGame->GetPlayerPool()->GetSlotState(playerId)) return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user