sscanf u and isplayerconnected - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: sscanf u and isplayerconnected (
/showthread.php?tid=633009)
sscanf u and isplayerconnected -
pelican1 - 23.04.2017
hi,
when i use u for a playerid or a name do i need to check after IsPlayerConnected and INVALID_PLAYER_ID
Thanks
Re: sscanf u and isplayerconnected -
GoldenLion - 23.04.2017
They will both work because when the player is not connected it will return 65535 (INVALID_PLAYER_ID), but it looks better if you check if the playerid is INVALID_PLAYER_ID.