Quick Question
#1

Can I use GetPlayerKeys under OnPlayerUpdate ? (Im not going to put a lot of code).

Will it create lagg ? Thanks you for you answers.
Reply
#2

it would be kinda of useless becuase onplayerupdate is removed in samp 0.3 iirc
Reply
#3

Quote:
Originally Posted by Linx [Stunt Revolution
]
it would be kinda of useless becuase onplayerupdate is removed in samp 0.3 iirc
No, it's not.
Reply
#4

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by Linx [Stunt Revolution
]
it would be kinda of useless becuase onplayerupdate is removed in samp 0.3 iirc
No, it's not.
must of been thinking of something else :/
Reply
#5

And my question ?
Reply
#6

Quote:
Originally Posted by Zeromanster
And my question ?
Quote:
Originally Posted by Zeromanster
Can I use GetPlayerKeys under OnPlayerUpdate ? (Im not going to put a lot of code).

Will it create lagg ? Thanks you for you answers.
It shouldn't if you don't have too much code there.
Reply
#7

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by Zeromanster
And my question ?
Quote:
Originally Posted by Zeromanster
Can I use GetPlayerKeys under OnPlayerUpdate ? (Im not going to put a lot of code).

Will it create lagg ? Thanks you for you answers.
It shouldn't if you don't have too much code there.
Thanks.
Reply
#8

Sorry for the double post but is this code okay ?

pawn Код:
public OnPlayerUpdate(playerid)
{
  if(IsPlayerConnected(playerid))
  {
    UpdateCount[playerid] += 1;
    if(UpdateCount[playerid] == 3)
    {
      UpdateCount[playerid] = 0;
      OnPlayerPressArrowKeys(playerid);
    }
   }
   return 1;
}
Will this create less lagg because it's three times slower ? Thanks.
Reply
#9

Like i said, little code shouldn't lag it, and you're not saving anything to a file so i guess it's good. But why do you need IsPlayerConnected check? OnPlayerUpdate will only run for connected players by default sa-mp check.
Reply
#10

Quote:
Originally Posted by Don Correlli
Like i said, little code shouldn't lag it, and you're not saving anything to a file so i guess it's good. But why do you need IsPlayerConnected check? OnPlayerUpdate will only run for connected players by default sa-mp check.
Thanks. I deleted IsPlayerConnected.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)