PremyslTalich / TeamGames

Sourcemod plugin providing team based games for prisoners and some useful things for wardens.
17 stars 13 forks source link

Invalid client index 328 (IsPlayerAlive) #29

Closed SHAREN closed 8 years ago

SHAREN commented 8 years ago
[SM] Exception reported: Invalid client index 328
[SM] Blaming: TeamGames/TeamGames.smx()
[SM] Call stack trace:
[SM]   [0] IsPlayerAlive
[SM]   [1] Line 659, Api.sp::Native_StopGame()
[SM]   [3] TG_StopGame
[SM]   [4] Line 121, /home/home/GIT/t2_lr_cfg/addons/sourcemod/scripting/jail_t2lrcfg.sp::lr()

May be it is userid, not index? https://github.com/KissLick/TeamGames/blob/a6ae9825289e741ed65fc9f0b3bbf8ccf285cba4/addons/sourcemod/scripting/Api.sp#L659

PremyslTalich commented 8 years ago

Should be done - https://github.com/KissLick/TeamGames/commit/255582a1e164cb9904bf53f948dc2bc54bf25fe3