Quick Question
#1

Do i need to use IsPlayerConnected at the begining of every command ? Like this:

pawn Код:
cmd(somecommand, playerid, params[])
{
  if(IsPlayerConnected(playerid))
  {
    // code
  }
  return 1;
}
Somebody pointed out to me that there's no need for that, so i would just like to confirm ?

Thanks.
Reply
#2

Its not necessary but i recommend to use it ..

Btw next time make a better subject for your topic
Reply
#3

Quote:
Originally Posted by ►Peter Corneile◄
Its not necessary but i recommend to use it ..

Btw next time make a better subject for your topic
Okay, thanks.
Reply
#4

Quote:
Originally Posted by zєяσмαиѕтєя
Quote:
Originally Posted by ►Peter Corneile◄
Its not necessary but i recommend to use it ..

Btw next time make a better subject for your topic
Okay, thanks.
No problem
Reply
#5

Not really, it is totally unneeded, it only was required in 0.1 to avoid disconnected / kicked players still using commands.
The only cases where you might wanna use IsPlayerConnected are loops and commands with a playerid as parameter.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)