Stats won's save on disconnect
#5

pawn Код:
stock PlayerName(playerid)
{
  new name[255];
  GetPlayerName(playerid, name, 255);
  return name;
}
Why are you using 255 for a simple player name string? That's a waste of memory. The max length of playername is 24.
Reply


Messages In This Thread
Stats won's save on disconnect - by Makaveli93 - 24.06.2012, 19:20
Re: Stats won's save on disconnect - by JaTochNietDan - 24.06.2012, 19:46
Re: Stats won's save on disconnect - by Makaveli93 - 24.06.2012, 20:35
Re: Stats won's save on disconnect - by JaTochNietDan - 24.06.2012, 20:38
Re: Stats won's save on disconnect - by Dodo9655 - 24.06.2012, 20:43
Re: Stats won's save on disconnect - by Makaveli93 - 24.06.2012, 20:43
Re: Stats won's save on disconnect - by Kindred - 24.06.2012, 20:53
Re: Stats won's save on disconnect - by Makaveli93 - 24.06.2012, 21:01
Re: Stats won's save on disconnect - by JaTochNietDan - 24.06.2012, 21:05
Re: Stats won's save on disconnect - by Makaveli93 - 24.06.2012, 21:07

Forum Jump:


Users browsing this thread: 1 Guest(s)