Name Goes Null
#6

I don't know what it caused it but I know a way of fixing it. Getting the name of the player only once on connect and store it to an array:
pawn Код:
// definition:
#define fName(%0) Player_Name[%0]

// global:
new
    Player_Name[MAX_PLAYERS][21];

// OnPlayerConnect:
GetPlayerName(playerid, Player_Name[playerid], 21);
so remove the fName stock and it will be fine.

PS: If you have server crashes, then load crashdetect plugin: https://github.com/Zeex/samp-plugin-...ases/tag/v4.13
For more information about crashes/run time errors such as line that caused it etc, use debug info: https://github.com/Zeex/samp-plugin-...ith-debug-info

Re-compile your scripts and start the server. After a server crash, post the server log.
Reply


Messages In This Thread
Name Goes Null - by Necro[ABK] - 04.03.2014, 11:10
Re: Name Goes Null - by Misiur - 04.03.2014, 11:29
Re: Name Goes Null - by Necro[ABK] - 04.03.2014, 11:31
Re: Name Goes Null - by Misiur - 04.03.2014, 11:41
Re: Name Goes Null - by Necro[ABK] - 04.03.2014, 11:51
Re: Name Goes Null - by Konstantinos - 04.03.2014, 11:55
Re: Name Goes Null - by Necro[ABK] - 04.03.2014, 12:01
Re: Name Goes Null - by Necro[ABK] - 04.03.2014, 12:43
Re: Name Goes Null - by Misiur - 04.03.2014, 12:57
Re: Name Goes Null - by Konstantinos - 04.03.2014, 12:58

Forum Jump:


Users browsing this thread: 1 Guest(s)