The purpose of IsPlayerConnected?
#8

Quote:
Originally Posted by ||123||
Посмотреть сообщение
Alright thanks, just some last simple questions:
-Will it be okay if I don't use IsPlayerConnected in OnPlayerCommandText, since Calgoone said it was only needed in older versions of samp?
-I should only be using IsPlayerConnected on another subject than playerid right?
-It's not neccessary to use IsPlayerConnected on OnPlayerKeyStateChange to detect if the one who presses the newkeys is connected right, since he will be the playerid.
For the first question, if your planning you use the original 'strcmp' method to call your commands, then you have learnt nothing. Those older methods which were included in gamemodes such as the 'Godfather' are obsolete. Command processors such as ZCMD and YCMD can check, call and execute the command faster than using the 'original' method.

Most likely for 'arbitrary input' as stated by ******, yes.
Reply


Messages In This Thread
The purpose of IsPlayerConnected? - by ||123|| - 13.07.2011, 15:55
Re: The purpose of IsPlayerConnected? - by freshOrange - 13.07.2011, 16:18
Re: The purpose of IsPlayerConnected? - by Kush - 13.07.2011, 16:24
Re: The purpose of IsPlayerConnected? - by ||123|| - 13.07.2011, 16:31
Re: The purpose of IsPlayerConnected? - by Calgon - 13.07.2011, 16:35
Re: The purpose of IsPlayerConnected? - by ||123|| - 13.07.2011, 16:42
Re: The purpose of IsPlayerConnected? - by ||123|| - 14.07.2011, 07:04
Re: The purpose of IsPlayerConnected? - by Kush - 14.07.2011, 07:28
Re: The purpose of IsPlayerConnected? - by ||123|| - 14.07.2011, 07:36
Re: The purpose of IsPlayerConnected? - by Kush - 14.07.2011, 07:49

Forum Jump:


Users browsing this thread: 1 Guest(s)