IsPlayerConnected problem
#7

Also, the IsPlayerConnected check should be above the pData[targetID][pIsLoggedIn] check, shouldn't it?
Because if you receive an Invalid Player ID with sscanf, then you will have an error when trying to access the array at that invalid index, I believe.

And you should use "r" instead of "u" for sscanf, because "u" also detects NPCs, which you don't want, right?
https://sampforum.blast.hk/showthread.php?tid=570927
Reply


Messages In This Thread
IsPlayerConnected problem - by polygxn - 20.02.2019, 21:56
Re: IsPlayerConnected problem - by DaniceMcHarley - 20.02.2019, 22:14
Re: IsPlayerConnected problem - by CherryMond - 20.02.2019, 22:17
Re: IsPlayerConnected problem - by polygxn - 20.02.2019, 22:18
Re: IsPlayerConnected problem - by Undef1ned - 20.02.2019, 22:43
Re: IsPlayerConnected problem - by polygxn - 20.02.2019, 22:53
Re: IsPlayerConnected problem - by AdamsLT - 20.02.2019, 23:11
Re: IsPlayerConnected problem - by polygxn - 20.02.2019, 23:21

Forum Jump:


Users browsing this thread: 1 Guest(s)