27.11.2013, 10:07
Quote:
pls I got a crash detect
Code:
[16:53:13] [debug] Server crashed while executing tolrp.amx [16:53:13] [debug] AMX backtrace: [16:53:13] [debug] #0 native SetPlayerName () [01ee5700] from sscanf.dll [16:53:13] [debug] #1 000b77cc in public OnDialogResponse (0x00000006, 0x00000037, 0x00000000, 0xffffffff, 0x00342380) from tolrp.amx [16:53:13] [debug] Native backtrace: |
pawn Code:
// Add it under the includes:
#if !defined isnull
#define isnull(%1) \
((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif
pawn Code:
if(!isnull(PlayerInfo[playerid][pNormalName])) SetPlayerName(playerid, PlayerInfo[playerid][pNormalName]);