їComo hacer un loop para aсadir playerid?
#1

їComo podrнa hacer un loop o alguna otra forma de utilizar playerid en CallBacks que no tengan playerid en su estructura?
Reply
#2

Код:
for(new i; i < MAX_PLAYERS; i++) { // i = playerid
 /* Cуdigo */
}
Reply
#3

https://sampwiki.blast.hk/wiki/GetPlayerPoolSize
Reply
#4

Puedes Usar Foreach Para Hacer Ese Tipo De Loop Mira Haci
PHP код:
public OnGameModeExit()
{
   foreach(new 
Player)
  {
   if(
IsPlayerConnected(i))
  {
   
OnPlayerDisconnect(i1);
  }
  }
  return 
1;

Reply
#5

Quote:
Originally Posted by Marshmello
Посмотреть сообщение
Puedes Usar Foreach Para Hacer Ese Tipo De Loop Mira Haci
PHP код:
public OnGameModeExit()
{
   foreach(new 
Player)
  {
   if(
IsPlayerConnected(i))
  {
   
OnPlayerDisconnect(i1);
  }
  }
  return 
1;

Eso es innecesario, OnPlayerDisconnect ya es llamado cuando el servidor se reinicia (gmx)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)