04.03.2014, 11:55
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:
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.
pawn Код:
// definition:
#define fName(%0) Player_Name[%0]
// global:
new
Player_Name[MAX_PLAYERS][21];
// OnPlayerConnect:
GetPlayerName(playerid, Player_Name[playerid], 21);
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.